public enum Diffusion extends Enum<Diffusion>
Modifier and Type | Class and Description |
---|---|
static interface |
Diffusion.Implementation
The contract with the implementation.
|
Enum Constant and Description |
---|
GLOBALS
The implementation.
|
Modifier and Type | Method and Description |
---|---|
static AuthenticationResultSource |
authenticationResult()
Returns an empty
AuthenticationResultSource that can be used by
authentication handlers as a starting point to create
AuthenticationResult s. |
static ContentFactory |
content()
Returns shared content factory.
|
static Credentials.Factory |
credentials()
Returns shared credentials factory to use for creating credentials.
|
static DataTypes |
dataTypes()
Returns data type implementations.
|
static MetadataFactory |
metadata()
Returns shared metadata factory that is to be used for creating record
based metadata definitions.
|
static ProxyAuthenticationFactory |
proxyAuthentication()
Returns a proxy authentication scheme factory.
|
static SessionFactory |
sessions()
Returns the shared session factory.
|
static TopicSelectors |
topicSelectors()
Returns a parser for topic selector expressions.
|
static Diffusion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Diffusion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Diffusion GLOBALS
public static Diffusion[] values()
for (Diffusion c : Diffusion.values()) System.out.println(c);
public static Diffusion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SessionFactory sessions()
public static ContentFactory content()
public static MetadataFactory metadata()
public static Credentials.Factory credentials()
public static TopicSelectors topicSelectors()
public static ProxyAuthenticationFactory proxyAuthentication()
public static AuthenticationResultSource authenticationResult()
AuthenticationResultSource
that can be used by
authentication handlers
as a starting point to create
AuthenticationResult
s.
AuthenticationResultSource
provides a fluent API for creating
authentication results. For example:
// All returned results are derived from this one. AuthenticationResultSource defaultResult = Diffusion.authenticationResult().withRoles("USER"); // ... // The authentication handler grants the new session both the // ADMINISTRATOR and USER roles. AuthenticationResult result = defaultResult.withRoles("ADMINISTATOR"); authenticationHandlerCallback.allow(result);
public static DataTypes dataTypes()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.