Package org.codice.ddf.security.handler
Class BaseAuthenticationToken
java.lang.Object
org.codice.ddf.security.handler.BaseAuthenticationToken
- All Implemented Interfaces:
Serializable,org.apache.shiro.authc.AuthenticationToken
- Direct Known Subclasses:
GuestAuthenticationToken,OidcAuthenticationToken,SAMLAuthenticationToken,SessionToken
public class BaseAuthenticationToken
extends Object
implements org.apache.shiro.authc.AuthenticationToken
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ObjectRepresents the credentials submitted by the user during the authentication process that verifies the submitted Principal account identity.protected Stringprotected ObjectRepresents the account identity submitted during the authentication process. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetType()voidsetAllowGuest(boolean allowGuest) protected voidvoidsetRequestURI(String requestURI) voidvoidsetX509Certs(X509Certificate[] x509Certs)
-
Field Details
-
principal
Represents the account identity submitted during the authentication process.Most application authentications are username/password based and have this object represent a username. However, this can also represent the DN from an X509 certificate, or any other unique identifier.
Ultimately, the object is application specific and can represent any account identity (user id, X.509 certificate, etc).
-
credentials
Represents the credentials submitted by the user during the authentication process that verifies the submitted Principal account identity.Most application authentications are username/password based and have this object represent a submitted password.
Ultimately, the credentials Object is application specific and can represent any credential mechanism.
-
ip
-
allowGuest
protected boolean allowGuest
-
-
Constructor Details
-
BaseAuthenticationToken
-
-
Method Details
-
getType
-
setType
-
getAllowGuest
public boolean getAllowGuest() -
setAllowGuest
public void setAllowGuest(boolean allowGuest) -
getPrincipal
- Specified by:
getPrincipalin interfaceorg.apache.shiro.authc.AuthenticationToken
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.apache.shiro.authc.AuthenticationToken
-
setCredentials
-
setX509Certs
-
getX509Certs
-
getRequestURI
-
setRequestURI
-
getCredentialsAsString
-
getIpAddress
-