|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.auth.SimpleAuthenticator
A simple Authenticator implementation based on passing the validated user name
back and forth to the client.
Supported API: true
Extendable: false
Field Summary | |
private static String |
RESOURCE
|
private static String |
versionID
|
Constructor Summary | |
SimpleAuthenticator()
|
Method Summary | |
String |
getUserName(Object auth)
Get authenticated user name. |
MethodAuthenticator |
newMethodAuthenticator(String user)
Create a new MethodAuthenticator object that will
associate the given user name to endorsed method calls. |
MethodAuthenticator |
newMethodAuthenticator(String user,
String session_id)
Create a new MethodAuthenticator object that will
associate the given user name to endorsed method calls for an
existing session. |
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 versionID
private static final String RESOURCE
Constructor Detail |
public SimpleAuthenticator()
Method Detail |
public MethodAuthenticator newMethodAuthenticator(String user)
MethodAuthenticator
object that will
associate the given user name to endorsed method calls.
newMethodAuthenticator
in interface Authenticator
user
- the authenticated user name
MethodAuthenticator
objectpublic MethodAuthenticator newMethodAuthenticator(String user, String session_id)
MethodAuthenticator
object that will
associate the given user name to endorsed method calls for an
existing session.
This method should never be called because SimpleAuthenticator
does
not support the notion of sessions.
newMethodAuthenticator
in interface Authenticator
user
- the authenticated user namesession_id
- string identifying the target session
MethodAuthenticator
objectpublic String getUserName(Object auth)
MethodAuthenticator
endorsement to determine the authenticated
user name.
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 |