| Package | Description |
|---|---|
| com.holonplatform.auth | |
| com.holonplatform.auth.token |
| 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 |
<T extends AuthenticationToken> |
Realm.Builder.authenticator(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 |
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 |
|---|---|
boolean |
Realm.supportsToken(Class<? extends AuthenticationToken> authenticationTokenType)
Returns whether this Realm supports given
AuthenticationToken type (i.e. and Authenticator bound
to given token type is registered in realm) |
| Modifier and Type | Class and Description |
|---|---|
class |
AccountCredentialsToken
Basic
AuthenticationToken to represent a generic account authentication. |
class |
BearerAuthenticationToken
AuthenticationToken representing a Bearer authententication token. |
Copyright © 2017 The Holon Platform. All rights reserved.