|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.valves.ValveBase
org.jboss.identity.federation.bindings.tomcat.idp.IDPRedirectValve
public class IDPRedirectValve
Valve at the IDP that supports the HTTP/Redirect Binding
| Field Summary | |
|---|---|
protected IDPType |
idpConfiguration
|
protected org.apache.catalina.util.LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
| Fields inherited from class org.apache.catalina.valves.ValveBase |
|---|
container, containerLog, controller, domain, info, mserver, next, oname, sm |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
IDPRedirectValve()
|
|
| Method Summary | |
|---|---|
void |
addLifecycleListener(org.apache.catalina.LifecycleListener listener)
Add a lifecycle event listener to this component. |
org.apache.catalina.LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
protected java.lang.String |
getDestination(java.lang.String urlEncodedResponse,
java.lang.String urlEncodedRelayState)
Generate a Destination URL for the HTTPRedirect binding with the saml response and relay state |
protected ResponseType |
getResponse(org.apache.catalina.connector.Request request,
java.security.Principal userPrincipal)
Create a response type |
void |
invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response)
|
protected void |
isTrusted(java.lang.String issuer)
Verify that the issuer is trusted |
void |
removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
Remove a lifecycle event listener from this component. |
protected void |
send(ResponseType responseType,
java.lang.String relayState,
org.apache.catalina.connector.Response response)
|
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. |
protected boolean |
validate(org.apache.catalina.connector.Request request)
Validate the incoming Request |
| Methods inherited from class org.apache.catalina.valves.ValveBase |
|---|
backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getInfo, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IDPType idpConfiguration
protected org.apache.catalina.util.LifecycleSupport lifecycle
| Constructor Detail |
|---|
public IDPRedirectValve()
| Method Detail |
|---|
public void invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response)
throws java.io.IOException,
javax.servlet.ServletException
invoke in interface org.apache.catalina.Valveinvoke in class org.apache.catalina.valves.ValveBasejava.io.IOException
javax.servlet.ServletException
protected void isTrusted(java.lang.String issuer)
throws IssuerNotTrustedException
issuer -
IssuerNotTrustedException
protected void send(ResponseType responseType,
java.lang.String relayState,
org.apache.catalina.connector.Response response)
throws javax.servlet.ServletException
javax.servlet.ServletException
protected java.lang.String getDestination(java.lang.String urlEncodedResponse,
java.lang.String urlEncodedRelayState)
urlEncodedResponse - urlEncodedRelayState -
protected boolean validate(org.apache.catalina.connector.Request request)
throws java.lang.Exception
request -
java.lang.Exception
protected ResponseType getResponse(org.apache.catalina.connector.Request request,
java.security.Principal userPrincipal)
throws java.lang.Exception
request - userPrincipal -
java.lang.Exceptionpublic void addLifecycleListener(org.apache.catalina.LifecycleListener listener)
addLifecycleListener in interface org.apache.catalina.Lifecyclelistener - The listener to addpublic org.apache.catalina.LifecycleListener[] findLifecycleListeners()
findLifecycleListeners in interface org.apache.catalina.Lifecyclepublic void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
removeLifecycleListener in interface org.apache.catalina.Lifecyclelistener - The listener to add
public void start()
throws org.apache.catalina.LifecycleException
configure(),
and before any of the public methods of the component are utilized.
start in interface org.apache.catalina.Lifecycleorg.apache.catalina.LifecycleException - if this component detects a fatal error
that prevents this component from being used
public void stop()
throws org.apache.catalina.LifecycleException
stop in interface org.apache.catalina.Lifecycleorg.apache.catalina.LifecycleException - if this component detects a fatal error
that needs to be reported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||