public abstract class SessionFactory extends Object
PresentsSession to use to manage an authenticated client
as well the type of ClientResolver to use when resolving clients' runtime data.| Modifier and Type | Field and Description |
|---|---|
static SessionFactory |
DEFAULT
The default client factory.
|
| Constructor and Description |
|---|
SessionFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Class<? extends ClientResolver> |
getClientResolverClass(Name username)
Returns the
ClientResolver derived class to use to resolve a client with the
specified username or null if this factory does not handle clients of the supplied type. |
abstract Class<? extends PresentsSession> |
getSessionClass(AuthRequest areq)
Returns the
PresentsSession derived class to use for the session that authenticated
with the supplied request or null if this factory does not handle sessions of the supplied
type. |
static SessionFactory |
newSessionFactory(Class<? extends Credentials> credsClass,
Class<? extends PresentsSession> sessionClass,
Class<? extends Name> nameClass,
Class<? extends ClientResolver> resolverClass)
Creates a session factory that handles clients with the supplied credentials and
authentication name.
|
public static SessionFactory DEFAULT
public static SessionFactory newSessionFactory(Class<? extends Credentials> credsClass, Class<? extends PresentsSession> sessionClass, Class<? extends Name> nameClass, Class<? extends ClientResolver> resolverClass)
public abstract Class<? extends PresentsSession> getSessionClass(AuthRequest areq)
PresentsSession derived class to use for the session that authenticated
with the supplied request or null if this factory does not handle sessions of the supplied
type.public abstract Class<? extends ClientResolver> getClientResolverClass(Name username)
ClientResolver derived class to use to resolve a client with the
specified username or null if this factory does not handle clients of the supplied type.Copyright © 2015. All rights reserved.