| java.lang.Object org.apache.catalina.authenticator.SingleSignOnEntry
SingleSignOnEntry | public class SingleSignOnEntry (Code) | | A class that represents entries in the cache of authenticated users.
This is necessary to make it available to
AuthenticatorBase subclasses that need it in order to perform
reauthentications when SingleSignOn is in use.
author: B Stansberry, based on work by Craig R. McClanahan version: $Revision: 1.5 $ See Also: SingleSignOn See Also: AuthenticatorBase.reauthenticateFromSSO |
Method Summary | |
public synchronized void | addSession(SingleSignOn sso, Session session) Adds a Session to the list of those associated with
this SSO. | public synchronized Session[] | findSessions() Returns the Session s associated with this SSO. | public String | getAuthType() Gets the name of the authentication type originally used to authenticate
the user associated with the SSO. | public boolean | getCanReauthenticate() Gets whether the authentication type associated with the original
authentication supports reauthentication. | public String | getPassword() Gets the password credential (if any) associated with the SSO. | public Principal | getPrincipal() Gets the Principal that has been authenticated by
the SSO. | public String | getUsername() Gets the username provided by the user as part of the authentication
process. | public synchronized void | removeSession(Session session) Removes the given Session from the list of those
associated with this SSO. | public void | updateCredentials(Principal principal, String authType, String username, String password) Updates the SingleSignOnEntry to reflect the latest security
information associated with the caller. |
canReauthenticate | protected boolean canReauthenticate(Code) | | |
SingleSignOnEntry | public SingleSignOnEntry(Principal principal, String authType, String username, String password)(Code) | | Creates a new SingleSignOnEntry
Parameters: principal - the Principal returned by the latestcall to Realm.authenticate . Parameters: authType - the type of authenticator used (BASIC, CLIENT-CERT,DIGEST or FORM) Parameters: username - the username (if any) used for the authentication Parameters: password - the password (if any) used for the authentication |
SingleSignOnEntry | public SingleSignOnEntry()(Code) | | |
addSession | public synchronized void addSession(SingleSignOn sso, Session session)(Code) | | Adds a Session to the list of those associated with
this SSO.
Parameters: sso - The SingleSignOn valve that is managingthe SSO session. Parameters: session - The Session being associated with the SSO. |
findSessions | public synchronized Session[] findSessions()(Code) | | Returns the Session s associated with this SSO.
|
getAuthType | public String getAuthType()(Code) | | Gets the name of the authentication type originally used to authenticate
the user associated with the SSO.
"BASIC", "CLIENT-CERT", "DIGEST", "FORM" or "NONE" |
getCanReauthenticate | public boolean getCanReauthenticate()(Code) | | Gets whether the authentication type associated with the original
authentication supports reauthentication.
true if getAuthType returns"BASIC" or "FORM", false otherwise. |
getPassword | public String getPassword()(Code) | | Gets the password credential (if any) associated with the SSO.
the password credential associated with the SSO, ornull if the original authentication typedoes not involve a password. |
getPrincipal | public Principal getPrincipal()(Code) | | Gets the Principal that has been authenticated by
the SSO.
|
getUsername | public String getUsername()(Code) | | Gets the username provided by the user as part of the authentication
process.
|
removeSession | public synchronized void removeSession(Session session)(Code) | | Removes the given Session from the list of those
associated with this SSO.
Parameters: session - the Session to remove. |
updateCredentials | public void updateCredentials(Principal principal, String authType, String username, String password)(Code) | | Updates the SingleSignOnEntry to reflect the latest security
information associated with the caller.
Parameters: principal - the Principal returned by the latestcall to Realm.authenticate . Parameters: authType - the type of authenticator used (BASIC, CLIENT-CERT,DIGEST or FORM) Parameters: username - the username (if any) used for the authentication Parameters: password - the password (if any) used for the authentication |
|
|