Package wt.auth
Interface Authenticator
- All Known Implementing Classes:
SessionAuthenticator,SimpleAuthenticator
public interface Authenticator
Authenticator interface.
Implementation objects are responsible for securly associating method calls to
client identity through the use of
Supported API: true
MethodAuthenticator objects that
endorse client calls.
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptiongetUserName(Object auth) Get authenticated user name.newMethodAuthenticator(String user) Create a newMethodAuthenticatorobject that will associate the given user name to endorsed method calls.newMethodAuthenticator(String user, String session_id) Create a newMethodAuthenticatorobject that will associate the given user name to endorsed method calls for an existing session.voidreauthenticateUser(Object auth) Initiate re-authentication for the current session.setUserName(String user) Set authenticated user name.
-
Method Details
-
newMethodAuthenticator
Create a newMethodAuthenticatorobject that will associate the given user name to endorsed method calls.
Supported API: true- Parameters:
user- the authenticated user name- Returns:
MethodAuthenticatorobject
-
newMethodAuthenticator
Create a newMethodAuthenticatorobject that will associate the given user name to endorsed method calls for an existing session.
Supported API: true- Parameters:
user- the authenticated user namesession_id- string identifying the target session- Returns:
MethodAuthenticatorobject
-
getUserName
Get authenticated user name. This method uses an authentication object added to the method call by aMethodAuthenticatorendorsement to determine the authenticated user name.
Supported API: true- Parameters:
auth- authentication object for the current call- Returns:
- the authenticated user name
-
setUserName
Set authenticated user name. This method returns an authentication object that will cause causegetUserNameto return the given name.
Supported API: true- Parameters:
user- authenticated user name- Returns:
- authentication object for the current call
-
reauthenticateUser
Initiate re-authentication for the current session.
Supported API: true- Parameters:
auth- authentication object for the current call
-