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.Error
getAsError()
Always throws anUnsupportedOperationException
since thisAuthChallengeCompleteEvent.Result
represents successdefault AuthChallengeCompleteEvent.Result.Success
getAsSuccess()
WebAuthUserContext
getWebAuthUserContext()
default boolean
isError()
default boolean
isSuccess()
-
-
-
Method Detail
-
isSuccess
default boolean isSuccess()
- Specified by:
isSuccess
in interfaceAuthChallengeCompleteEvent.Result
- Returns:
- true since this
AuthChallengeCompleteEvent.Result
represents success
-
isError
default boolean isError()
- Specified by:
isError
in interfaceAuthChallengeCompleteEvent.Result
- Returns:
- false since this
AuthChallengeCompleteEvent.Result
represents success
-
getAsSuccess
default AuthChallengeCompleteEvent.Result.Success getAsSuccess()
- Specified by:
getAsSuccess
in interfaceAuthChallengeCompleteEvent.Result
- Returns:
- this
AuthChallengeCompleteEvent.Result
typed asAuthChallengeCompleteEvent.Result.Success
-
getAsError
default AuthChallengeCompleteEvent.Result.Error getAsError()
Always throws anUnsupportedOperationException
since thisAuthChallengeCompleteEvent.Result
represents success- Specified by:
getAsError
in interfaceAuthChallengeCompleteEvent.Result
- Returns:
- the result as an
AuthChallengeCompleteEvent.Result.Error
object if the result is an error, otherwise throws anUnsupportedOperationException
if 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
WebAuthUserContext
which contains details about the user who performed the successful authentication challenge
-
-