|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.session.SessionAuthenticator
An Authenticator implementation based on passing a known session id
back and forth to the client.
Supported API: true
Extendable: false
Field Summary | |
private static String |
REAUTH_FLAG_KEY
|
private static String |
RESOURCE
|
private static String |
USER_NAME_KEY
|
Fields inherited from interface wt.auth.Authenticator |
versionID |
Constructor Summary | |
SessionAuthenticator()
|
Method Summary | |
String |
getUserName(Object auth)
Get the authenticated user name associated with the given session authenticator. |
MethodAuthenticator |
newMethodAuthenticator(String user)
Create a new MethodAuthenticator object that will
associate endorsed calls to a session with the given user name. |
MethodAuthenticator |
newMethodAuthenticator(String user,
String session_id)
Create a new MethodAuthenticator object that will
associate endorsed calls from the given session with the given user name. |
void |
reauthenticateUser(Object auth)
Initiate re-authentication for the current session. |
Object |
setUserName(String user)
Set authenticated user name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String USER_NAME_KEY
private static final String REAUTH_FLAG_KEY
Constructor Detail |
public SessionAuthenticator()
Method Detail |
public MethodAuthenticator newMethodAuthenticator(String user)
MethodAuthenticator
object that will
associate endorsed calls to a session with the given user name.
newMethodAuthenticator
in interface Authenticator
user
- the authenticated user name
MethodAuthenticator
objectpublic MethodAuthenticator newMethodAuthenticator(String user, String session_id)
MethodAuthenticator
object that will
associate endorsed calls from the given session with the given user name.
This can only be called when re-authenticating an existing session.
newMethodAuthenticator
in interface Authenticator
user
- the authenticated user namesession_id
- string identifying the target session
MethodAuthenticator
objectpublic String getUserName(Object auth)
getUserName
in interface Authenticator
auth
- authentication object for the current call
public Object setUserName(String user)
getUserName
to return the given name.
setUserName
in interface Authenticator
user
- authenticated user name
public void reauthenticateUser(Object auth)
reauthenticateUser
in interface Authenticator
auth
- authentication object for the current call
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |