| Package | Description |
|---|---|
| com.holonplatform.auth | |
| com.holonplatform.auth.internal |
| 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. |
static AuthenticationToken.AuthenticationTokenResolver<HttpRequest> |
AuthenticationToken.httpBasicResolver()
Build a default
AuthenticationToken.AuthenticationTokenResolver for HTTP BASIC authentication scheme. |
static AuthenticationToken.AuthenticationTokenResolver<HttpRequest> |
AuthenticationToken.httpBearerResolver()
Build a default
AuthenticationToken.AuthenticationTokenResolver for HTTP BEARER authentication scheme. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Message> |
Authenticator.MessageAuthenticator.getResolversForMessageType(Class<T> messageType)
Get available
AuthenticationToken.AuthenticationTokenResolvers for given message type |
| Modifier and Type | Method and Description |
|---|---|
void |
Authenticator.MessageAuthenticator.addAuthenticationTokenResolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
Add an
AuthenticationToken.AuthenticationTokenResolver to translate messages into AuthenticationTokens. |
default Realm.Builder |
Realm.Builder.resolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
Deprecated.
Use withResolver(AuthenticationTokenResolver)
|
Realm.Builder |
Realm.Builder.withResolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
Add an
AuthenticationToken.AuthenticationTokenResolver to translate Messages into AuthenticationTokens. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHttpAuthenticationTokenResolver
Base HTTP
AuthenticationToken.AuthenticationTokenResolver implementation, using a HttpRequest message type. |
class |
BasicAuthenticationTokenResolver
AuthenticationToken.AuthenticationTokenResolver for HTTP requests providing HttpHeaders.SCHEME_BASIC authentication
scheme using HttpHeaders.AUTHORIZATION header. |
class |
BearerAuthenticationTokenResolver
OAuth2
AuthenticationToken.AuthenticationTokenResolver for HTTP requests providing HttpHeaders.SCHEME_BEARER
authentication scheme using HttpHeaders.AUTHORIZATION header. |
class |
CallbackAuthenticationTokenResolver<M extends Message>
An
AuthenticationToken.AuthenticationTokenResolver implementation which uses a callback function for message token resolution. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Message> |
DefaultRealm.getResolversForMessageType(Class<T> messageType) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultRealm.addAuthenticationTokenResolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver) |
Realm.Builder |
DefaultRealm.RealmBuilder.withResolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver) |
Copyright © 2019 The Holon Platform. All rights reserved.