public class DefaultSpringSecurityAuthenticationToken extends Object implements SpringSecurityAuthenticationToken
SpringSecurityAuthenticationToken
implementation.AuthenticationToken.AuthenticationTokenResolver<R extends Message>
CredentialsContainer.CredentialsMatcher
Constructor and Description |
---|
DefaultSpringSecurityAuthenticationToken(org.springframework.security.core.Authentication authentication)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
getAuthentication()
Get the Spring Security
Authentication bound to this token. |
Object |
getCredentials()
Returns the credentials submitted during the authentication process that verifies the submitted
AuthenticationToken.getPrincipal() account identity. |
Object |
getPrincipal()
Get the principal to which this authentication token refers, i.e. the account identity submitted during the
authentication process.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
account, create
accountCredentials, bearer, httpBasicResolver, httpBearerResolver
defaultMatcher
public DefaultSpringSecurityAuthenticationToken(org.springframework.security.core.Authentication authentication)
authentication
- Spring Security Authentication
token (not null)public Object getPrincipal()
AuthenticationToken
getPrincipal
in interface AuthenticationToken
public Object getCredentials()
AuthenticationToken
AuthenticationToken.getPrincipal()
account identity.getCredentials
in interface AuthenticationToken
getCredentials
in interface CredentialsContainer
public org.springframework.security.core.Authentication getAuthentication()
SpringSecurityAuthenticationToken
Authentication
bound to this token.getAuthentication
in interface SpringSecurityAuthenticationToken
Authentication
(not null)Copyright © 2019 The Holon Platform. All rights reserved.