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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AuthChallengeCompleteEvent.Result.ErrorgetAsError()Always throws anUnsupportedOperationExceptionsince thisAuthChallengeCompleteEvent.Resultrepresents successdefault AuthChallengeCompleteEvent.Result.SuccessgetAsSuccess()WebAuthUserContextgetWebAuthUserContext()default booleanisError()default booleanisSuccess()
-
-
-
Method Detail
-
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
default AuthChallengeCompleteEvent.Result.Success getAsSuccess()
- Specified by:
getAsSuccessin interfaceAuthChallengeCompleteEvent.Result- Returns:
- this
AuthChallengeCompleteEvent.Resulttyped asAuthChallengeCompleteEvent.Result.Success
-
getAsError
default AuthChallengeCompleteEvent.Result.Error 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
-
-