|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.authentication.standard.AuthenticatorAbstract
org.nakedobjects.runtime.authentication.standard.exploration.ExplorationAuthenticator
public class ExplorationAuthenticator
Creates a session suitable for exploration
mode.
If the NakedObjectConfiguration contains the key
then returns a
MultiUserExplorationSession which encapsulates the details of several
users (and their roles). Viewers that are aware of this capability can offer
the convenient ability to switch between these users. For viewers that are
not aware, the MultiUserExplorationSession appears as a regular
session, with the Id of the first user listed.
The format of the key should be:
<:userName> [:<role>[|<role>]...], <userName>...
| Constructor Summary | |
|---|---|
ExplorationAuthenticator(NakedObjectConfiguration configuration)
|
|
| Method Summary | |
|---|---|
AuthenticationSession |
authenticate(AuthenticationRequest request,
java.lang.String code)
Default implementation returns a SimpleSession;
can be overridden if required. |
boolean |
canAuthenticate(AuthenticationRequest request)
Can authenticate if a AuthenticationRequestExploration. |
boolean |
isValid(AuthenticationRequest request)
Valid providing running in exploration mode. |
| Methods inherited from class org.nakedobjects.runtime.authentication.standard.AuthenticatorAbstract |
|---|
getConfiguration, getDeploymentType, init, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExplorationAuthenticator(NakedObjectConfiguration configuration)
| Method Detail |
|---|
public final boolean canAuthenticate(AuthenticationRequest request)
AuthenticationRequestExploration.
public final boolean isValid(AuthenticationRequest request)
exploration mode.
public AuthenticationSession authenticate(AuthenticationRequest request,
java.lang.String code)
AuthenticatorAbstractSimpleSession;
can be overridden if required.
authenticate in interface Authenticatorauthenticate in class AuthenticatorAbstractcode - - a hint; is guaranteed to be unique, but the authenticator decides whether to use it or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||