| Package | Description |
|---|---|
| com.holonplatform.auth | |
| com.holonplatform.http | |
| 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 |
Authenticator.MessageAuthenticator.authenticate(Message<?,?> message,
String... schemes)
Try to authenticate given
message with the same contract as
Authenticator.authenticate(AuthenticationToken). |
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. |
| 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 | 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 | 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.