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 anUnsupportedOperationException
since thisAuthChallengeCompleteEvent.Result
represents successdefault boolean
isError()
default boolean
-
Method Details
-
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
- Specified by:
getAsSuccess
in interfaceAuthChallengeCompleteEvent.Result
- Returns:
- this
AuthChallengeCompleteEvent.Result
typed asAuthChallengeCompleteEvent.Result.Success
-
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
-