public class AuthIdentificationResult extends Object implements com.helger.commons.state.ISuccessIndicator, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AuthIdentificationResult(IAuthToken aAuthToken,
ICredentialValidationResult aCredentialValidationFailure)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AuthIdentificationResult |
createFailure(ICredentialValidationResult aCredentialValidationFailure)
Factory method for error in authentication.
|
static AuthIdentificationResult |
createSuccess(IAuthToken aAuthToken)
Factory method for success authentication.
|
IAuthToken |
getAuthToken() |
ICredentialValidationResult |
getCredentialValidationFailure() |
boolean |
isFailure() |
boolean |
isSuccess() |
String |
toString() |
protected AuthIdentificationResult(@Nullable IAuthToken aAuthToken, @Nullable ICredentialValidationResult aCredentialValidationFailure)
aAuthToken - The auth token. May not be null in case of success.
Must be null in case of failure.aCredentialValidationFailure - The validation failure. May not be null in case of
failure. Must be null in case of success.public boolean isSuccess()
isSuccess in interface com.helger.commons.state.ISuccessIndicatorpublic boolean isFailure()
isFailure in interface com.helger.commons.state.ISuccessIndicator@Nullable public IAuthToken getAuthToken()
null in case of an error.@Nullable public ICredentialValidationResult getCredentialValidationFailure()
null in case of
success.@Nonnull public static AuthIdentificationResult createSuccess(@Nonnull IAuthToken aAuthToken)
aAuthToken - The auth token. May not be null.null.@Nonnull public static AuthIdentificationResult createFailure(@Nonnull ICredentialValidationResult aCredentialValidationFailure)
aCredentialValidationFailure - The validation failure. May not be null in case of
failure!null.Copyright © 2016–2019 Philip Helger. All rights reserved.