public class SingleSignOnEntry
extends java.lang.Object
implements java.io.Serializable
AuthenticatorBase subclasses that need it in order to perform
reauthentications when SingleSignOn is in use.SingleSignOn,
AuthenticatorBase.reauthenticateFromSSO(java.lang.String, org.apache.catalina.connector.Request),
Serialized Form| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | authType | 
| protected boolean | canReauthenticate | 
| protected java.lang.String | password | 
| protected java.security.Principal | principal | 
| protected java.util.concurrent.ConcurrentHashMap<SingleSignOnSessionKey,SingleSignOnSessionKey> | sessionKeys | 
| protected java.lang.String | username | 
| Constructor and Description | 
|---|
| SingleSignOnEntry(java.security.Principal principal,
java.lang.String authType,
java.lang.String username,
java.lang.String password)Creates a new SingleSignOnEntry | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addSession(SingleSignOn sso,
java.lang.String ssoId,
Session session)Adds a  Sessionto the list of those associated with
this SSO. | 
| java.util.Set<SingleSignOnSessionKey> | findSessions()Returns the HTTP Session identifiers associated with this SSO. | 
| java.lang.String | getAuthType()Gets the name of the authentication type originally used to authenticate
the user associated with the SSO. | 
| boolean | getCanReauthenticate()Gets whether the authentication type associated with the original
authentication supports reauthentication. | 
| java.lang.String | getPassword()Gets the password credential (if any) associated with the SSO. | 
| java.security.Principal | getPrincipal()Gets the  Principalthat has been authenticated by the SSO. | 
| java.lang.String | getUsername()Gets the user name provided by the user as part of the authentication
process. | 
| void | removeSession(Session session)Removes the given  Sessionfrom the list of those
associated with this SSO. | 
| void | updateCredentials(java.security.Principal principal,
java.lang.String authType,
java.lang.String username,
java.lang.String password)Updates the SingleSignOnEntry to reflect the latest security
information associated with the caller. | 
protected java.lang.String authType
protected java.lang.String password
protected transient java.security.Principal principal
protected java.util.concurrent.ConcurrentHashMap<SingleSignOnSessionKey,SingleSignOnSessionKey> sessionKeys
protected java.lang.String username
protected boolean canReauthenticate
public SingleSignOnEntry(java.security.Principal principal,
                 java.lang.String authType,
                 java.lang.String username,
                 java.lang.String password)
principal - the Principal returned by the latest
call to Realm.authenticate.authType - the type of authenticator used (BASIC, CLIENT_CERT,
DIGEST or FORM)username - the username (if any) used for the authenticationpassword - the password (if any) used for the authenticationpublic void addSession(SingleSignOn sso, java.lang.String ssoId, Session session)
Session to the list of those associated with
this SSO.sso - The SingleSignOn valve that is managing
the SSO session.session - The Session being associated with the SSO.public void removeSession(Session session)
Session from the list of those
associated with this SSO.session - the Session to remove.public java.util.Set<SingleSignOnSessionKey> findSessions()
public java.lang.String getAuthType()
public boolean getCanReauthenticate()
true if getAuthType returns
"BASIC" or "FORM", false otherwise.public java.lang.String getPassword()
null if the original authentication type
does not involve a password.public java.security.Principal getPrincipal()
Principal that has been authenticated by the SSO.public java.lang.String getUsername()
public void updateCredentials(java.security.Principal principal,
                     java.lang.String authType,
                     java.lang.String username,
                     java.lang.String password)
principal - the Principal returned by the latest
call to Realm.authenticate.authType - the type of authenticator used (BASIC, CLIENT_CERT,
DIGEST or FORM)username - the username (if any) used for the authenticationpassword - the password (if any) used for the authenticationCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.