public final class AuthIdentificationResult extends Object implements com.helger.commons.state.ISuccessIndicator
| Constructor and Description |
|---|
AuthIdentificationResult(CredentialValidationResult aCredentialValidationResult)
Constructor for a failure.
|
AuthIdentificationResult(IAuthToken aAuthToken)
Constructor for success.
|
| Modifier and Type | Method and Description |
|---|---|
IAuthToken |
getAuthToken() |
String |
getCredentialValidationErrorMessage() |
boolean |
isFailure() |
boolean |
isSuccess() |
String |
toString() |
public AuthIdentificationResult(@Nonnull CredentialValidationResult aCredentialValidationResult)
aCredentialValidationResult - The validation result. May not be null and must be a
failure!public AuthIdentificationResult(@Nonnull IAuthToken aAuthToken)
aAuthToken - The auth token. May not be null.public boolean isSuccess()
isSuccess in interface com.helger.commons.state.ISuccessIndicatorpublic boolean isFailure()
isFailure in interface com.helger.commons.state.ISuccessIndicator@Nullable public String getCredentialValidationErrorMessage()
null in
case of successful identification@Nullable public IAuthToken getAuthToken()
null in case of an error.Copyright © 2014–2015 Philip Helger. All rights reserved.