Interface AuthChallengeCompleteEvent.Result.Error.Cancelled
- All Superinterfaces:
AuthChallengeCompleteEvent.Result,AuthChallengeCompleteEvent.Result.Error
- Enclosing interface:
- AuthChallengeCompleteEvent.Result.Error
public static interface AuthChallengeCompleteEvent.Result.Error.Cancelled
extends AuthChallengeCompleteEvent.Result.Error
Representation of the result of an authentication challenge which failed due to the user cancelling the
authentication challenge.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result
AuthChallengeCompleteEvent.Result.Error, AuthChallengeCompleteEvent.Result.SuccessNested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result.Error
AuthChallengeCompleteEvent.Result.Error.Cancelled, AuthChallengeCompleteEvent.Result.Error.Generic, AuthChallengeCompleteEvent.Result.Error.Timeout -
Method Summary
Modifier and TypeMethodDescriptionAlways throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Cancellederror resultAlways throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Cancellederror resultdefault booleandefault booleandefault booleanMethods inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result.Error
getAsError, getAsSuccess, isError, isSuccess
-
Method Details
-
isGeneric
default boolean isGeneric()- Specified by:
isGenericin interfaceAuthChallengeCompleteEvent.Result.Error- Returns:
- false since this
AuthChallengeCompleteEvent.Result.Errorresult is due to the user cancelling the authentication challenge
-
isTimeout
default boolean isTimeout()- Specified by:
isTimeoutin interfaceAuthChallengeCompleteEvent.Result.Error- Returns:
- false since this
AuthChallengeCompleteEvent.Result.Errorresult is due to the user cancelling the authentication challenge
-
isCancelled
default boolean isCancelled()- Specified by:
isCancelledin interfaceAuthChallengeCompleteEvent.Result.Error- Returns:
- true since this
AuthChallengeCompleteEvent.Result.Errorresult is due to the user cancelling the authentication challenge
-
getAsGeneric
Always throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Cancellederror result- Specified by:
getAsGenericin interfaceAuthChallengeCompleteEvent.Result.Error- Returns:
- this
AuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Genericobject if this error is generic, otherwise throws anUnsupportedOperationExceptionif this error is not generic. CheckAuthChallengeCompleteEvent.Result.Error.isGeneric()before calling this method to ensure you get the correct result type.
-
getAsTimeout
Always throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Cancellederror result- Specified by:
getAsTimeoutin interfaceAuthChallengeCompleteEvent.Result.Error- Returns:
- this
AuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Timeoutobject if this error is due to a timeout, otherwise throws anUnsupportedOperationExceptionif this error is not due to a timeout. CheckAuthChallengeCompleteEvent.Result.Error.isTimeout()before calling this method to ensure you get the correct result type.
-
getAsCancelled
- Specified by:
getAsCancelledin interfaceAuthChallengeCompleteEvent.Result.Error- Returns:
- this
AuthChallengeCompleteEvent.Result.Errorresult typed asAuthChallengeCompleteEvent.Result.Error.Cancelled
-