Host).Realm that contains the shared user and role information must be configured on the same
Container (or a higher one), and not overridden at the web application level.org.apache.catalina.authenticator package.| Modifier and Type | Field and Description |
|---|---|
| protected Map | cache
The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to select them. |
| private String | cookieDomain
Optional SSO cookie domain. |
| private String | cookieName
SSO cookie name, the default value is |
| private Engine | |
| private boolean | requireReauthentication
Indicates whether this valve should require a downstream Authenticator to reauthenticate each request, or if it itself can bind a UserPrincipal and AuthType object to the request. |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected void | deregister(String
Single sign on identifier to deregister ssoId)Deregister the specified single sign on identifier, and invalidate any associated sessions. |
| private void | |
| public String | |
| public String | |
| public boolean | Returns: true if it is required that a downstream Authenticator reauthenticate each request before
calls to HttpServletRequest.setUserPrincipal() and
HttpServletRequest.setAuthType() are made; false if the Valve
can itself make those calls relying on the presence of a valid SingleSignOn entry associated with the
request.Gets whether each request needs to be reauthenticated (by an Authenticator downstream in the pipeline) to the
security |
| protected SessionListener | |
| public void | invoke(Request
The servlet request we are processing request, Response The servlet response we are creating response)Implements org. Perform single-sign-on support processing for this request. |
| protected boolean | Returns: true if reauthentication was successful, false otherwise.identifier of SingleSignOn session with which the caller is associated ssoId, Realm Realm implementation against which the caller is to be authenticated realm, Request the request that needs to be authenticated request)Attempts reauthentication to the given |
| protected void | register(String
Single sign on identifier to register ssoId, Principal Associated user principal that is identified principal, String Authentication type used to authenticate this user principal authType, String Username used to authenticate this user username, String Password used to authenticate this user password)Register the specified Principal as being associated with the specified value for the single sign on identifier. |
| protected void | removeSession(String
Single sign on identifier from which to remove the session. ssoId, Session the session to be removed. session)Remove a single Session from a SingleSignOn. |
| public void | sessionDestroyed(String
The ID of the SSO session which which the destroyed session was associated ssoId, Session The session that has been destroyed session)Process a session destroyed event by removing references to that session from the caches and - if the session destruction is the result of a logout - destroy the associated SSO session. |
| public void | |
| public void | setCookieName(String
the cookieName to set cookieName)Set the cookie name that will be used for the SSO cookie. |
| public void | setRequireReauthentication(boolean
true if it is required that a downstream Authenticator reauthenticate each request
before calls to HttpServletRequest.setUserPrincipal() and
HttpServletRequest.setAuthType() are made; false if the
Valve can itself make those calls relying on the presence of a valid
SingleSignOn entry associated with the request.Sets whether each request needs to be reauthenticated (by an Authenticator downstream in the pipeline) to the
security |
| protected void | startInternal()
Overrides org. Start this component and implement the requirements of
|
| protected void | stopInternal()
Overrides org. Stop this component and implement the requirements of
|
| protected boolean | Returns: true if the credentials were updated, otherwise falseidentifier of Single sign to be updated ssoId, Principal the principal, String Principal returned by the latest call to Realm.authenticate.the type of authenticator used (BASIC, CLIENT_CERT, DIGEST or FORM) authType, String the username (if any) used for the authentication username, String the password (if any) used for the authentication password)Updates any |
| cache | back to summary |
|---|---|
| protected Map<String, SingleSignOnEntry> cache The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to select them. | |
| cookieDomain | back to summary |
|---|---|
| private String cookieDomain Optional SSO cookie domain. | |
| cookieName | back to summary |
|---|---|
| private String cookieName SSO cookie name, the default value is | |
| engine | back to summary |
|---|---|
| private Engine engine | |
| requireReauthentication | back to summary |
|---|---|
| private boolean requireReauthentication Indicates whether this valve should require a downstream Authenticator to reauthenticate each request, or if it itself can bind a UserPrincipal and AuthType object to the request. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| SingleSignOn | back to summary |
|---|---|
| public SingleSignOn() | |
| associate | back to summary |
|---|---|
| protected boolean associate(String ssoId, Session session) Associate the specified single sign on identifier with the specified Session. | |
| deregister | back to summary |
|---|---|
| protected void deregister(String ssoId) Deregister the specified single sign on identifier, and invalidate any associated sessions.
| |
| expire | back to summary |
|---|---|
| private void expire(SingleSignOnSessionKey key) | |
| getCookieDomain | back to summary |
|---|---|
| public String getCookieDomain() Returns the optional cookie domain. May return null.
| |
| getCookieName | back to summary |
|---|---|
public String getCookieName()
| |
| getRequireReauthentication | back to summary |
|---|---|
| public boolean getRequireReauthentication() Gets whether each request needs to be reauthenticated (by an Authenticator downstream in the pipeline) to the
security
| |
| getSessionListener | back to summary |
|---|---|
| protected SessionListener getSessionListener(String ssoId) | |
| invoke | back to summary |
|---|---|
| public void invoke(Request request, Response response) throws IOException, ServletException Implements org. Perform single-sign-on support processing for this request.
| |
| reauthenticate | back to summary |
|---|---|
| protected boolean reauthenticate(String ssoId, Realm realm, Request request) Attempts reauthentication to the given
If reauthentication is successful, the
| |
| register | back to summary |
|---|---|
| protected void register(String ssoId, Principal principal, String authType, String username, String password) Register the specified Principal as being associated with the specified value for the single sign on identifier.
| |
| removeSession | back to summary |
|---|---|
| protected void removeSession(String ssoId, Session session) Remove a single Session from a SingleSignOn. Called when a session is timed out and no longer active. | |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(String ssoId, Session session) Process a session destroyed event by removing references to that session from the caches and - if the session destruction is the result of a logout - destroy the associated SSO session. | |
| setCookieDomain | back to summary |
|---|---|
| public void setCookieDomain(String cookieDomain) Sets the domain to be used for sso cookies.
| |
| setCookieName | back to summary |
|---|---|
| public void setCookieName(String cookieName) Set the cookie name that will be used for the SSO cookie.
| |
| setRequireReauthentication | back to summary |
|---|---|
| public void setRequireReauthentication(boolean required) Sets whether each request needs to be reauthenticated (by an Authenticator downstream in the pipeline) to the
security
If this property is
This property should be set to
If this property is set to
The default value of this property is
| |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Overrides org. Doc from org. Start this component and implement the requirements of
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Overrides org. Doc from org. Stop this component and implement the requirements of
| |
| update | back to summary |
|---|---|
| protected boolean update(String ssoId, Principal principal, String authType, String username, String password) Updates any The purpose of this method is to allow an SSO entry that was established without a username/password combination (i.e. established following DIGEST or CLIENT_CERT authentication) to be updated with a username and password if one becomes available through a subsequent BASIC or FORM authentication. The SSO entry will then be usable for reauthentication. Note Only updates the SSO entry if a call to
| |