Package org.apereo.cas.authentication
Class DefaultAuthenticationHandlerExecutionResult
java.lang.Object
org.apereo.cas.authentication.DefaultAuthenticationHandlerExecutionResult
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.AuthenticationHandlerExecutionResult
public class DefaultAuthenticationHandlerExecutionResult
extends Object
implements org.apereo.cas.authentication.AuthenticationHandlerExecutionResult
Contains information about a successful authentication produced by an
AuthenticationHandler.
Handler results are naturally immutable since they contain sensitive information that should not be modified outside
the AuthenticationHandler that produced it.- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuthenticationHandlerExecutionResult(String handlerName, org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Principal principal, List<org.apereo.cas.authentication.MessageDescriptor> warnings) Creates a newDefaultAuthenticationHandlerExecutionResultinstance.DefaultAuthenticationHandlerExecutionResult(String source, org.apereo.cas.authentication.principal.Principal principal) DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential) DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential, @NonNull List<org.apereo.cas.authentication.MessageDescriptor> warnings) DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Principal principal) DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Principal principal, @NonNull List<org.apereo.cas.authentication.MessageDescriptor> warnings) -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.authentication.AuthenticationHandlerExecutionResultaddWarning(org.apereo.cas.authentication.MessageDescriptor message) org.apereo.cas.authentication.AuthenticationHandlerExecutionResultbooleanorg.apereo.cas.authentication.CredentialCredential meta data.The name of the authentication handler that successfully authenticated a credential.org.apereo.cas.authentication.principal.PrincipalResolved principal for authenticated credential.List<org.apereo.cas.authentication.MessageDescriptor> List of warnings issued by the authentication source while authenticating the credential.inthashCode()voidsetCredential(org.apereo.cas.authentication.Credential credential) Credential meta data.voidsetHandlerName(String handlerName) The name of the authentication handler that successfully authenticated a credential.voidsetPrincipal(org.apereo.cas.authentication.principal.Principal principal) Resolved principal for authenticated credential.voidsetWarnings(List<org.apereo.cas.authentication.MessageDescriptor> warnings) List of warnings issued by the authentication source while authenticating the credential.toString()
-
Constructor Details
-
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential) -
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Principal principal) -
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential, @NonNull @NonNull List<org.apereo.cas.authentication.MessageDescriptor> warnings) -
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult(org.apereo.cas.authentication.AuthenticationHandler source, org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Principal principal, @NonNull @NonNull List<org.apereo.cas.authentication.MessageDescriptor> warnings) -
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult(String source, org.apereo.cas.authentication.principal.Principal principal) -
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult() -
DefaultAuthenticationHandlerExecutionResult
public DefaultAuthenticationHandlerExecutionResult(String handlerName, org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Principal principal, List<org.apereo.cas.authentication.MessageDescriptor> warnings) Creates a newDefaultAuthenticationHandlerExecutionResultinstance.- Parameters:
handlerName- The name of the authentication handler that successfully authenticated a credential.credential- Credential meta data.principal- Resolved principal for authenticated credential.warnings- List of warnings issued by the authentication source while authenticating the credential.
-
-
Method Details
-
addWarning
@CanIgnoreReturnValue public org.apereo.cas.authentication.AuthenticationHandlerExecutionResult addWarning(org.apereo.cas.authentication.MessageDescriptor message) - Specified by:
addWarningin interfaceorg.apereo.cas.authentication.AuthenticationHandlerExecutionResult
-
clearWarnings
@CanIgnoreReturnValue public org.apereo.cas.authentication.AuthenticationHandlerExecutionResult clearWarnings()- Specified by:
clearWarningsin interfaceorg.apereo.cas.authentication.AuthenticationHandlerExecutionResult
-
toString
-
getHandlerName
The name of the authentication handler that successfully authenticated a credential.- Specified by:
getHandlerNamein interfaceorg.apereo.cas.authentication.AuthenticationHandlerExecutionResult
-
getCredential
public org.apereo.cas.authentication.Credential getCredential()Credential meta data.- Specified by:
getCredentialin interfaceorg.apereo.cas.authentication.AuthenticationHandlerExecutionResult
-
getPrincipal
public org.apereo.cas.authentication.principal.Principal getPrincipal()Resolved principal for authenticated credential.- Specified by:
getPrincipalin interfaceorg.apereo.cas.authentication.AuthenticationHandlerExecutionResult
-
getWarnings
List of warnings issued by the authentication source while authenticating the credential.- Specified by:
getWarningsin interfaceorg.apereo.cas.authentication.AuthenticationHandlerExecutionResult
-
setHandlerName
The name of the authentication handler that successfully authenticated a credential. -
setCredential
public void setCredential(org.apereo.cas.authentication.Credential credential) Credential meta data. -
setPrincipal
public void setPrincipal(org.apereo.cas.authentication.principal.Principal principal) Resolved principal for authenticated credential. -
setWarnings
List of warnings issued by the authentication source while authenticating the credential. -
equals
-
hashCode
public int hashCode()
-