org.jboss.identity.federation.bindings.tomcat.sp
Class SPUtil

java.lang.Object
  extended by org.jboss.identity.federation.bindings.tomcat.sp.SPUtil

public class SPUtil
extends java.lang.Object

Common code useful for a SP

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

Constructor Summary
SPUtil()
           
 
Method Summary
 AuthnRequestType createSAMLRequest(java.lang.String serviceURL, java.lang.String identityURL)
          Create a SAML2 auth request
 java.security.Principal handleSAMLResponse(org.apache.catalina.connector.Request request, ResponseType responseType)
          Handle the SAMLResponse from the IDP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPUtil

public SPUtil()
Method Detail

createSAMLRequest

public AuthnRequestType createSAMLRequest(java.lang.String serviceURL,
                                          java.lang.String identityURL)
                                   throws java.lang.Exception
Create a SAML2 auth request

Parameters:
serviceURL - URL of the service
identityURL - URL of the identity provider
Returns:
Throws:
java.lang.Exception

handleSAMLResponse

public java.security.Principal handleSAMLResponse(org.apache.catalina.connector.Request request,
                                                  ResponseType responseType)
                                           throws java.lang.Exception
Handle the SAMLResponse from the IDP

Parameters:
request - entire request from IDP
responseType - ResponseType that has been generated
serverEnvironment - tomcat,jboss etc
Returns:
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.