| Modifier and Type | Interface and Description |
|---|---|
interface |
Authenticator<T extends AuthenticationToken>
Authenticator is responsible for authenticating accounts using an
AuthenticationToken. |
| Modifier and Type | Method and Description |
|---|---|
<T extends AuthenticationToken> |
Realm.addAuthenticator(Authenticator<T> authenticator)
Add a concrete
Authenticator for a specific AuthenticationToken type to this Realm |
default <T extends AuthenticationToken> |
Realm.Builder.authenticator(Authenticator<T> authenticator)
Deprecated.
|
static <T extends AuthenticationToken> |
Authenticator.create(Class<? extends T> tokenType,
Function<T,Authentication> authenticationFunction)
Create an
Authenticator bound to the given token type and which uses the provided callback
Function to perform the authentication strategy. |
<T extends AuthenticationToken> |
Realm.Builder.withAuthenticator(Authenticator<T> authenticator)
Register given
Authenticator in Realm. |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationToken |
AuthenticationToken.accountCredentials(String accountId,
String secret)
Create a basic
AuthenticationToken to represent a generic account authentication. |
static AuthenticationToken |
Account.accountCredentialsToken(String accountId,
byte[] secret)
Create a new
AccountCredentialsToken with given account id and secret. |
static AuthenticationToken |
Account.accountCredentialsToken(String accountId,
String secret)
Create a new
AccountCredentialsToken with given account id and secret. |
static AuthenticationToken |
AuthenticationToken.bearer(String token)
Create an
AuthenticationToken to represent a HttpHeaders.SCHEME_BEARER token authentication. |
| Modifier and Type | Method and Description |
|---|---|
Optional<AuthenticationToken> |
AuthenticationToken.AuthenticationTokenResolver.getAuthenticationToken(R request)
Parse given
request message and try to obtain an AuthenticationToken if request is
eligible for this resolver authentication mechanism. |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
AuthContext.authenticate(AuthenticationToken authenticationToken)
Attempts to authenticate a user using given
AuthenticationToken. |
| Modifier and Type | Method and Description |
|---|---|
static <M extends Message> |
AuthenticationToken.AuthenticationTokenResolver.create(Class<? extends Message> messageType,
Function<M,Optional<AuthenticationToken>> resolverFunction)
Create a new
AuthenticationToken.AuthenticationTokenResolver for given messageType, providing the resolution
function to obtain an AuthenticationToken from a message instance. |
static <M extends Message> |
AuthenticationToken.AuthenticationTokenResolver.create(Class<? extends Message> messageType,
Function<M,Optional<AuthenticationToken>> resolverFunction,
String scheme)
Create a new
AuthenticationToken.AuthenticationTokenResolver for given messageType, providing the resolution
function to obtain an AuthenticationToken from a message instance. |
boolean |
Realm.supportsToken(Class<? extends AuthenticationToken> authenticationTokenType)
Returns whether this Realm supports given
AuthenticationToken type (i.e. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultCallbackAuthenticator<T extends AuthenticationToken>
A default
Authenticator implementation which uses a callback Function to perform the authentication
strategy. |
| Modifier and Type | Method and Description |
|---|---|
<T extends AuthenticationToken> |
DefaultRealm.addAuthenticator(Authenticator<T> authenticator) |
<T extends AuthenticationToken> |
DefaultRealm.RealmBuilder.withAuthenticator(Authenticator<T> authenticator) |
| Modifier and Type | Method and Description |
|---|---|
Optional<AuthenticationToken> |
BasicAuthenticationTokenResolver.getAuthenticationToken(HttpRequest request) |
Optional<AuthenticationToken> |
BearerAuthenticationTokenResolver.getAuthenticationToken(HttpRequest request) |
Optional<AuthenticationToken> |
CallbackAuthenticationTokenResolver.getAuthenticationToken(M request) |
Class<? extends AuthenticationToken> |
DefaultRealm.getTokenType() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
DefaultAuthContext.authenticate(AuthenticationToken authenticationToken) |
Authentication |
DefaultRealm.authenticate(AuthenticationToken authenticationToken) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultRealm.supportsToken(Class<? extends AuthenticationToken> authenticationTokenType) |
| Constructor and Description |
|---|
CallbackAuthenticationTokenResolver(Class<? extends Message> messageType,
Function<M,Optional<AuthenticationToken>> resolverFunction,
String scheme)
Constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AccountCredentialsToken
Basic
AuthenticationToken to represent a generic account authentication. |
class |
BearerAuthenticationToken
AuthenticationToken representing a Bearer authententication token. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SpringSecurityAuthenticationToken
An
AuthenticationToken which uses a Spring Security Authentication as authentication principal and
credentials provider. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AuthenticationToken,A extends org.springframework.security.core.Authentication> |
SpringSecurity.authenticationProvider(Authenticator<T> authenticator,
Class<A> authenticationType,
Function<A,T> converter)
Create a Spring Security
AuthenticationProvider using an Authenticator as concrete authentication
provider. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAuthenticationManagerAuthenticator<T extends AuthenticationToken>
Abstract class for
AuthenticationManager based Authenticators. |
class |
AuthenticationProviderAdapter<T extends AuthenticationToken,A extends org.springframework.security.core.Authentication>
Adapter to use an
Authenticator as a Spring Security AuthenticationProvider. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultSpringSecurityAuthenticationToken
Default
SpringSecurityAuthenticationToken implementation. |
Copyright © 2019 The Holon Platform. All rights reserved.