public static interface Realm.Builder
Realm
instances.Realm.Builder name(String name)
name
- Realm name to set<T extends AuthenticationToken> Realm.Builder withAuthenticator(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
- The Authenticator
to add (not null)@Deprecated default <T extends AuthenticationToken> Realm.Builder authenticator(Authenticator<T> authenticator)
withAuthenticator(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 withResolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
AuthenticationToken.AuthenticationTokenResolver
to translate Message
s into AuthenticationToken
s.authenticationTokenResolver
- Resolver to add@Deprecated default Realm.Builder resolver(AuthenticationToken.AuthenticationTokenResolver<?> authenticationTokenResolver)
AuthenticationToken.AuthenticationTokenResolver
to translate Message
s into AuthenticationToken
s.authenticationTokenResolver
- The AuthenticationToken.AuthenticationTokenResolver
to add (not null)<P extends Permission> Realm.Builder withAuthorizer(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 add@Deprecated default <P extends Permission> Realm.Builder authorizer(Authorizer<P> authorizer)
withAuthorizer(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
- The Authorizer
to add (not null)Realm.Builder withDefaultAuthorizer()
Authorizer
Authorizer.create()
Realm.Builder withAuthenticationListener(Authentication.AuthenticationListener authenticationListener)
Authentication.AuthenticationListener
for authentication eventsauthenticationListener
- The AuthenticationListener to register (not null)@Deprecated default Realm.Builder listener(Authentication.AuthenticationListener authenticationListener)
Authentication.AuthenticationListener
for authentication eventsauthenticationListener
- The AuthenticationListener to registerCopyright © 2019 The Holon Platform. All rights reserved.