Interface AuthChallengeCompleteEvent.Result.Success
- All Superinterfaces:
AuthChallengeCompleteEvent.Result
- Enclosing interface:
- AuthChallengeCompleteEvent.Result
public static interface AuthChallengeCompleteEvent.Result.Success
extends AuthChallengeCompleteEvent.Result
Representation of a successful authentication challenge result.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result
AuthChallengeCompleteEvent.Result.Error, AuthChallengeCompleteEvent.Result.Success -
Method Summary
Modifier and TypeMethodDescriptionAlways throws anUnsupportedOperationExceptionsince thisAuthChallengeCompleteEvent.Resultrepresents successdefault booleanisError()default boolean
-
Method Details
-
isSuccess
default boolean isSuccess()- Specified by:
isSuccessin interfaceAuthChallengeCompleteEvent.Result- Returns:
- true since this
AuthChallengeCompleteEvent.Resultrepresents success
-
isError
default boolean isError()- Specified by:
isErrorin interfaceAuthChallengeCompleteEvent.Result- Returns:
- false since this
AuthChallengeCompleteEvent.Resultrepresents success
-
getAsSuccess
- Specified by:
getAsSuccessin interfaceAuthChallengeCompleteEvent.Result- Returns:
- this
AuthChallengeCompleteEvent.Resulttyped asAuthChallengeCompleteEvent.Result.Success
-
getAsError
Always throws anUnsupportedOperationExceptionsince thisAuthChallengeCompleteEvent.Resultrepresents success- Specified by:
getAsErrorin interfaceAuthChallengeCompleteEvent.Result- Returns:
- the result as an
AuthChallengeCompleteEvent.Result.Errorobject if the result is an error, otherwise throws anUnsupportedOperationExceptionif the result is successful. CheckAuthChallengeCompleteEvent.Result.isSuccess()orAuthChallengeCompleteEvent.Result.isError()before calling this method to ensure you get the correct result type.
-
getWebAuthUserContext
WebAuthUserContext getWebAuthUserContext()- Returns:
- the
WebAuthUserContextwhich contains details about the user who performed the successful authentication challenge
-