org.apache.catalina.authenticator
public class SingleSignOnEntry extends Object
AuthenticatorBase
subclasses that need it in order to perform
reauthentications when SingleSignOn is in use.
Version: $Revision: 500629 $
See Also: SingleSignOn AuthenticatorBase
Field Summary | |
---|---|
protected String | authType |
protected boolean | canReauthenticate |
protected String | password |
protected Principal | principal |
protected Session[] | sessions |
protected String | username |
Constructor Summary | |
---|---|
SingleSignOnEntry(Principal principal, String authType, String username, String password)
Creates a new SingleSignOnEntry
| |
SingleSignOnEntry() |
Method Summary | |
---|---|
void | addSession(SingleSignOn sso, Session session)
Adds a Session to the list of those associated with
this SSO.
|
Session[] | findSessions()
Returns the Session s associated with this SSO. |
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.
|
String | getPassword()
Gets the password credential (if any) associated with the SSO.
|
Principal | getPrincipal()
Gets the Principal that has been authenticated by
the SSO. |
String | getUsername()
Gets the username provided by the user as part of the authentication
process. |
void | removeSession(Session session)
Removes the given Session from the list of those
associated with this SSO.
|
void | updateCredentials(Principal principal, String authType, String username, String password)
Updates the SingleSignOnEntry to reflect the latest security
information associated with the caller.
|
Parameters: 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 authentication password the password (if any) used for the authentication
Session
to the list of those associated with
this SSO.
Parameters: sso The SingleSignOn
valve that is managing
the SSO session. session The Session
being associated with the SSO.
Session
s associated with this SSO.Returns: "BASIC", "CLIENT_CERT", "DIGEST", "FORM" or "NONE"
Returns: true
if getAuthType
returns
"BASIC" or "FORM", false
otherwise.
Returns: the password credential associated with the SSO, or
null
if the original authentication type
does not involve a password.
Principal
that has been authenticated by
the SSO.Session
from the list of those
associated with this SSO.
Parameters: session the Session
to remove.
Parameters: 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 authentication password the password (if any) used for the authentication