org.jboss.identity.federation.bindings.tomcat.idp
Class IDPRedirectWithSignatureValve

java.lang.Object
  extended by org.apache.catalina.valves.ValveBase
      extended by org.jboss.identity.federation.bindings.tomcat.idp.IDPRedirectValve
          extended by org.jboss.identity.federation.bindings.tomcat.idp.IDPRedirectWithSignatureValve
All Implemented Interfaces:
javax.management.MBeanRegistration, org.apache.catalina.Contained, org.apache.catalina.Lifecycle, org.apache.catalina.Valve

public class IDPRedirectWithSignatureValve
extends IDPRedirectValve

Valve at the Identity Provider that supports SAML2 HTTP/Redirect binding with digital signature support and xml encryption

Since:
Jan 14, 2009
Author:
Anil.Saldhana@redhat.com

Field Summary
 
Fields inherited from class org.jboss.identity.federation.bindings.tomcat.idp.IDPRedirectValve
idpConfiguration, lifecycle
 
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
IDPRedirectWithSignatureValve()
           
 
Method Summary
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 setIgnoreSignature(java.lang.String val)
          Indicate whether the signature parameter in the request needs to be ignored
 void start()
          Prepare for the beginning of 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.jboss.identity.federation.bindings.tomcat.idp.IDPRedirectValve
addLifecycleListener, findLifecycleListeners, invoke, isTrusted, removeLifecycleListener, send, stop
 
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
 

Constructor Detail

IDPRedirectWithSignatureValve

public IDPRedirectWithSignatureValve()
Method Detail

setIgnoreSignature

public void setIgnoreSignature(java.lang.String val)
Indicate whether the signature parameter in the request needs to be ignored

Parameters:
val -

start

public void start()
           throws org.apache.catalina.LifecycleException
Description copied from class: IDPRedirectValve
Prepare for the beginning of active use of the public methods of this component. This method should be called after configure(), and before any of the public methods of the component are utilized.

Specified by:
start in interface org.apache.catalina.Lifecycle
Overrides:
start in class IDPRedirectValve
Throws:
org.apache.catalina.LifecycleException - if this component detects a fatal error that prevents this component from being used

validate

protected boolean validate(org.apache.catalina.connector.Request request)
                    throws java.lang.Exception
Description copied from class: IDPRedirectValve
Validate the incoming Request

Overrides:
validate in class IDPRedirectValve
Returns:
Throws:
java.lang.Exception

getDestination

protected java.lang.String getDestination(java.lang.String urlEncodedResponse,
                                          java.lang.String urlEncodedRelayState)
Description copied from class: IDPRedirectValve
Generate a Destination URL for the HTTPRedirect binding with the saml response and relay state

Overrides:
getDestination in class IDPRedirectValve
Returns:

getResponse

protected ResponseType getResponse(org.apache.catalina.connector.Request request,
                                   java.security.Principal userPrincipal)
                            throws java.lang.Exception
Description copied from class: IDPRedirectValve
Create a response type

Overrides:
getResponse in class IDPRedirectValve
Returns:
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.