org.eclipse.higgins.saml2idp.server.util
Class SAMLUtil

java.lang.Object
  extended byorg.eclipse.higgins.saml2idp.server.util.SAMLUtil

public class SAMLUtil
extends Object


Method Summary
static org.eclipse.higgins.sts.api.ISTSRequest makeSTSRequest(org.eclipse.higgins.util.saml.SAML2AuthnRequest samlAuthnRequest, String username, String password)
           
static org.eclipse.higgins.sts.api.ISTSResponse makeSTSResponse(org.eclipse.higgins.sts.api.ISTSRequest stsRequest)
           
static org.eclipse.higgins.util.saml.SAML2AuthnRequest parseAuthnRequestFromGet(String samlString)
           
static org.eclipse.higgins.util.saml.SAML2AuthnRequest parseAuthnRequestFromPost(String samlString)
           
static void postResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.eclipse.higgins.sts.api.ISTSResponse stsResponse, String destination, String relayState)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseAuthnRequestFromGet

public static org.eclipse.higgins.util.saml.SAML2AuthnRequest parseAuthnRequestFromGet(String samlString)
                                                                                throws DataFormatException,
                                                                                       IOException,
                                                                                       SAXException
Throws:
DataFormatException
IOException
SAXException

parseAuthnRequestFromPost

public static org.eclipse.higgins.util.saml.SAML2AuthnRequest parseAuthnRequestFromPost(String samlString)
                                                                                 throws DataFormatException,
                                                                                        IOException,
                                                                                        SAXException
Throws:
DataFormatException
IOException
SAXException

makeSTSRequest

public static org.eclipse.higgins.sts.api.ISTSRequest makeSTSRequest(org.eclipse.higgins.util.saml.SAML2AuthnRequest samlAuthnRequest,
                                                                     String username,
                                                                     String password)

makeSTSResponse

public static org.eclipse.higgins.sts.api.ISTSResponse makeSTSResponse(org.eclipse.higgins.sts.api.ISTSRequest stsRequest)
                                                                throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

postResponse

public static void postResponse(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                org.eclipse.higgins.sts.api.ISTSResponse stsResponse,
                                String destination,
                                String relayState)
                         throws javax.servlet.ServletException,
                                IOException
Throws:
javax.servlet.ServletException
IOException