org.jboss.identity.federation.core.saml.v2.factories
Class JBossSAMLAuthnRequestFactory

java.lang.Object
  extended by org.jboss.identity.federation.core.saml.v2.factories.JBossSAMLAuthnRequestFactory

public class JBossSAMLAuthnRequestFactory
extends java.lang.Object

Factory for SAML2 AuthnRequest

Since:
Dec 9, 2008
Author:
Anil.Saldhana@redhat.com

Constructor Summary
JBossSAMLAuthnRequestFactory()
           
 
Method Summary
static AuthnRequestType createAuthnRequestType()
          Create a AuthnRequestType
static javax.xml.bind.JAXBElement<AuthnRequestType> createAuthnRequestType(AuthnRequestType authnRequestType)
          Create a JAXBElement for the AuthnRequestType
static AuthnRequestType createAuthnRequestType(java.lang.String id, java.lang.String assertionConsumerURL, java.lang.String destination, java.lang.String issuerValue)
          Create an AuthnRequestType
static javax.xml.bind.Marshaller getValidatingMarshaller(boolean schemaValidation)
          Get the validating marshaller
static javax.xml.bind.Unmarshaller getValidatingUnmarshaller(boolean schemaValidation)
          Get the validating unmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossSAMLAuthnRequestFactory

public JBossSAMLAuthnRequestFactory()
Method Detail

createAuthnRequestType

public static AuthnRequestType createAuthnRequestType()
Create a AuthnRequestType

Returns:

createAuthnRequestType

public static AuthnRequestType createAuthnRequestType(java.lang.String id,
                                                      java.lang.String assertionConsumerURL,
                                                      java.lang.String destination,
                                                      java.lang.String issuerValue)
                                               throws java.lang.Exception
Create an AuthnRequestType

Parameters:
id - Id of the request
assertionConsumerURL - URL of the requestor where the response assertion is requested
issuerValue - URL of the issuer
Returns:
Throws:
java.lang.Exception

createAuthnRequestType

public static javax.xml.bind.JAXBElement<AuthnRequestType> createAuthnRequestType(AuthnRequestType authnRequestType)
Create a JAXBElement for the AuthnRequestType

Parameters:
authnRequestType -
Returns:

getValidatingMarshaller

public static javax.xml.bind.Marshaller getValidatingMarshaller(boolean schemaValidation)
                                                         throws java.lang.Exception
Get the validating marshaller

Parameters:
schemaValidation - Whether schema validation is needed
Returns:
Throws:
java.lang.Exception

getValidatingUnmarshaller

public static javax.xml.bind.Unmarshaller getValidatingUnmarshaller(boolean schemaValidation)
                                                             throws java.lang.Exception
Get the validating unmarshaller

Parameters:
schemaValidation - whether schema validation is needed
Returns:
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.