| Modifier and Type | Method and Description |
|---|---|
<T extends AuthenticationToken> |
authenticator(Authenticator<T> authenticator)
Register given
Authenticator in Realm. |
<P extends Permission> |
authorizer(Authorizer<P> authorizer)
Register given
Authorizer in Realm. |
Realm |
build()
Build
Realm instance |
Realm.Builder |
listener(Authentication.AuthenticationListener authenticationListener)
Register an AuthenticationListener for authentication events
|
Realm.Builder |
name(String name)
Set Realm name
|
Realm.Builder |
resolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
Add an
AuthenticationToken.AuthenticationTokenResolver to translate Messages into AuthenticationTokens. |
Realm.Builder |
withDefaultAuthorizer()
Register the default
Authorizer |
Realm.Builder name(String name)
name - Realm name to set<T extends AuthenticationToken> Realm.Builder authenticator(Authenticator<T> authenticator)
Authenticator in Realm.
Registered Authenticators will be inspected in the order they were added to Realm to find the first one which
is consistent with the AuthenticationToken type to process during authentication operations performed
using Authenticator.authenticate(AuthenticationToken).
T - Authentication token typeauthenticator - Authenticator to addRealm.Builder resolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
AuthenticationToken.AuthenticationTokenResolver to translate Messages into AuthenticationTokens.authenticationTokenResolver - Resolver to add<P extends Permission> Realm.Builder authorizer(Authorizer<P> authorizer)
Authorizer in Realm.
Registered Authorizers will be inspected in the order they were added to Realm to find the first one which is
consistent with the Permission type to process during authorization checking performed using
isPermitted methods.
P - Permission typeauthorizer - Authorizer to addRealm.Builder withDefaultAuthorizer()
AuthorizerAuthorizer.create()Realm.Builder listener(Authentication.AuthenticationListener authenticationListener)
authenticationListener - AuthenticationListener to registerCopyright © 2017 The Holon Platform. All rights reserved.