public interface SpringSecurityAuthenticationToken extends AuthenticationToken
AuthenticationToken
which uses a Spring Security Authentication
as authentication principal and
credentials provider.
The Spring Security Authentication
is returned from AuthenticationToken.getPrincipal()
, the
Authentication.getCredentials()
is returned from AuthenticationToken.getCredentials()
.
AuthenticationToken.AuthenticationTokenResolver<R extends Message>
CredentialsContainer.CredentialsMatcher
Modifier and Type | Method and Description |
---|---|
static SpringSecurityAuthenticationToken |
account(String accountId,
String secret)
Create an account credentials authentican token, using the Spring Security
UsernamePasswordAuthenticationToken as concrete authentication token. |
static SpringSecurityAuthenticationToken |
create(org.springframework.security.core.Authentication authentication)
Create a new authentican token using given Spring Security
Authentication as concrete authentication
token. |
org.springframework.security.core.Authentication |
getAuthentication()
Get the Spring Security
Authentication bound to this token. |
accountCredentials, bearer, getCredentials, getPrincipal, httpBasicResolver, httpBearerResolver
defaultMatcher
org.springframework.security.core.Authentication getAuthentication()
Authentication
bound to this token.Authentication
(not null)static SpringSecurityAuthenticationToken create(org.springframework.security.core.Authentication authentication)
Authentication
as concrete authentication
token.authentication
- Spring Security Authentication
token (not null)SpringSecurityAuthenticationToken
static SpringSecurityAuthenticationToken account(String accountId, String secret)
UsernamePasswordAuthenticationToken
as concrete authentication token.accountId
- Account id (username)secret
- Account secret (password)SpringSecurityAuthenticationToken
with given account credentialsCopyright © 2018 The Holon Platform. All rights reserved.