| Package | Description |
|---|---|
| com.holonplatform.auth | |
| com.holonplatform.auth.internal | |
| com.holonplatform.http | |
| com.holonplatform.http.internal | |
| com.holonplatform.http.rest | |
| com.holonplatform.http.servlet |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AuthenticationToken.AuthenticationTokenResolver<R extends Message>
Resolver to obtain an
AuthenticationToken from an authentication request using a generic Message. |
| 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. |
<T extends Message> |
Authenticator.MessageAuthenticator.getResolversForMessageType(Class<T> messageType)
Get available
AuthenticationToken.AuthenticationTokenResolvers for given message type |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Message> |
AuthenticationToken.AuthenticationTokenResolver.getMessageType()
Get supported message type
|
| Modifier and Type | Method and Description |
|---|---|
Authentication |
AuthContext.authenticate(Message<?,?> message,
String... schemes)
Attempts to authenticate using given
message with the same contract as
AuthContext.authenticate(AuthenticationToken), using Realm registered AuthenticationToken.AuthenticationTokenResolvers
for given message type, if any. |
Authentication |
Authenticator.MessageAuthenticator.authenticate(Message<?,?> message,
String... schemes)
Try to authenticate given
message with the same contract as
Authenticator.authenticate(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 |
Authenticator.MessageAuthenticator.supportsMessage(Class<? extends Message<?,?>> messageType)
Check whether this MessageAuthenticator supports given message type
|
| Modifier and Type | Class and Description |
|---|---|
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 |
|---|---|
Class<? extends Message<?,?>> |
AbstractHttpAuthenticationTokenResolver.getMessageType() |
Class<? extends Message> |
CallbackAuthenticationTokenResolver.getMessageType() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
DefaultAuthContext.authenticate(Message<?,?> message,
String... schemes) |
Authentication |
DefaultRealm.authenticate(Message<?,?> message,
String... schemes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultRealm.supportsMessage(Class<? extends Message<?,?>> messageType) |
| Constructor and Description |
|---|
CallbackAuthenticationTokenResolver(Class<? extends Message> messageType,
Function<M,Optional<AuthenticationToken>> resolverFunction,
String scheme)
Constructor.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpMessage<P>
HTTP generic request/response
Message representation. |
interface |
HttpRequest
Represents a generic HTTP request
|
interface |
HttpResponse<T>
Represents a generic HTTP response
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHttpRequest
HttpRequest base class. |
class |
DefaultHttpResponse<T>
Default
HttpResponse implementation. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ResponseEntity<T>
HttpResponse extension that adds HTTP entity handling, dealing with HTTP response body processing
and conversion into a supported Java type, besides the one expected as declared response type. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ServletHttpRequest
A
HttpRequest backed by a Servlet HttpServletRequest. |
Copyright © 2019 The Holon Platform. All rights reserved.