public class SingleSignOn extends ValveBase implements SessionListener
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<String,SingleSignOnEntry> |
cache
The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to
select them.
|
protected static String |
info
Descriptive information about this Valve implementation.
|
container, controller, debug, domain, lifecycle, next, oname, startedAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENTEND_PIPELINE, INVOKE_NEXT| Constructor and Description |
|---|
SingleSignOn() |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(String ssoId,
long ssoVersion,
Session session)
Associate the specified single sign on identifier with the specified Session.
|
protected void |
deregister(String ssoId,
Session session)
Deregister the specified session.
|
int |
getDebug()
Return the debugging detail level.
|
String |
getInfo()
Return descriptive information about this Valve implementation.
|
int |
invoke(Request request,
Response response)
Perform single-sign-on support processing for this request.
|
boolean |
isVersioningSupported()
Return a boolean to indicate whether the sso id version is supported or not.
|
protected void |
log(String message)
Log a message on the Logger associated with our Container (if any).
|
protected void |
log(String message,
Throwable t)
Log a message on the Logger associated with our Container (if any).
|
protected SingleSignOnEntry |
lookup(String ssoId)
Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return
null. |
protected SingleSignOnEntry |
lookup(String ssoId,
long ssoVersion)
Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return
null. |
protected void |
register(String ssoId,
Principal principal,
String authType,
String username,
char[] password,
String realmName)
Register the specified Principal as being associated with the specified value for the single sign on identifier.
|
void |
sessionEvent(SessionEvent event)
Acknowledge the occurrence of the specified event.
|
void |
setDebug(int debug)
Set the debugging detail level.
|
void |
start()
Prepare for the beginning of active use of the public methods of this component.
|
void |
stop()
Gracefully terminate the active use of the public methods of this component.
|
String |
toString()
Return a String rendering of this object.
|
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getContainer, getController, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, postInvoke, removeLifecycleListener, setContainer, setController, setNext, setObjectNameprotected static final String info
protected Map<String,SingleSignOnEntry> cache
public int getDebug()
public void setDebug(int debug)
public void start()
throws LifecycleException
configure(), and before any of the public methods of the component are utilized.start in interface Lifecyclestart in class ValveBaseLifecycleException - if this component detects a fatal error that prevents this component from being usedpublic void stop()
throws LifecycleException
stop in interface Lifecyclestop in class ValveBaseLifecycleException - if this component detects a fatal error that needs to be reportedpublic void sessionEvent(SessionEvent event)
sessionEvent in interface SessionListenerevent - SessionEvent that has occurredpublic String getInfo()
public int invoke(Request request, Response response) throws IOException, javax.servlet.ServletException
invoke in interface GlassFishValveinvoke in class ValveBaserequest - The servlet request we are processingresponse - The servlet response we are creatingINVOKE_NEXT or END_PIPELINEIOException - if an input/output error occursjavax.servlet.ServletException - if a servlet error occurspublic String toString()
public void associate(String ssoId, long ssoVersion, Session session)
ssoId - Single sign on identifierssoVersion - Single sign on versionsession - Session to be associatedprotected void deregister(String ssoId, Session session)
ssoId - Single sign on identifiersession - Session to be deregisteredprotected void register(String ssoId, Principal principal, String authType, String username, char[] password, String realmName)
ssoId - Single sign on identifier to registerprincipal - Associated user principal that is identifiedauthType - Authentication type used to authenticate this user principalusername - Username used to authenticate this userpassword - Password used to authenticate this userprotected void log(String message)
message - Message to be loggedprotected void log(String message, Throwable t)
message - Message to be loggedt - Associated exceptionprotected SingleSignOnEntry lookup(String ssoId)
null.ssoId - Single sign on identifier to look upprotected SingleSignOnEntry lookup(String ssoId, long ssoVersion)
null.ssoId - Single sign on identifier to look upssoVersion - Single sign on version to look uppublic boolean isVersioningSupported()
Copyright © 2019. All rights reserved.