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

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

public class JBossSAMLBaseFactory
extends java.lang.Object

Base methods for the factories

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

Constructor Summary
JBossSAMLBaseFactory()
           
 
Method Summary
static AssertionType createAssertion()
           
static AttributeType createAttributeForRole(java.lang.String roleName)
          Create an attribute type given a role name
static AttributeStatementType createAttributeStatement()
           
static AttributeStatementType createAttributeStatement(java.lang.String attributeValue)
          Create an AttributeStatement given an attribute
static NameIDType createNameID()
           
static javax.xml.bind.JAXBElement<NameIDType> createNameID(NameIDType nameIDType)
           
static SubjectType createSubject()
           
static SubjectConfirmationType createSubjectConfirmation(java.lang.String method)
           
static javax.xml.bind.JAXBElement<SubjectConfirmationType> createSubjectConfirmation(SubjectConfirmationType sct)
           
static SubjectConfirmationDataType createSubjectConfirmationData(java.lang.String inResponseTo, java.lang.String destinationURI, javax.xml.datatype.XMLGregorianCalendar issueInstant)
           
static java.lang.String createUUID()
          Get a UUID String
static NameIDType getIssuer(java.lang.String issuerID)
          Return the NameIDType for the issuer
static javax.xml.bind.Marshaller getMarshaller(java.lang.String pkgName)
          Get the JAXB Marshaller
static ObjectFactory getObjectFactory()
           
static javax.xml.bind.Unmarshaller getUnmarshaller(java.lang.String pkgName)
          Get the JAXB Unmarshaller
static javax.xml.bind.Marshaller getValidatingMarshaller(java.lang.String pkgName, java.lang.String schemaLocation)
          Get the JAXB Marshaller
static javax.xml.bind.Unmarshaller getValidatingUnmarshaller(java.lang.String pkgName, java.lang.String schemaLocation)
          Get the JAXB Unmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossSAMLBaseFactory

public JBossSAMLBaseFactory()
Method Detail

createAssertion

public static AssertionType createAssertion()

createAttributeStatement

public static AttributeStatementType createAttributeStatement()

createAttributeForRole

public static AttributeType createAttributeForRole(java.lang.String roleName)
Create an attribute type given a role name

Parameters:
roleName -
Returns:

createAttributeStatement

public static AttributeStatementType createAttributeStatement(java.lang.String attributeValue)
Create an AttributeStatement given an attribute

Parameters:
attributeValue -
Returns:

createNameID

public static NameIDType createNameID()

createNameID

public static javax.xml.bind.JAXBElement<NameIDType> createNameID(NameIDType nameIDType)

createSubject

public static SubjectType createSubject()

createSubjectConfirmation

public static SubjectConfirmationType createSubjectConfirmation(java.lang.String method)

createSubjectConfirmation

public static javax.xml.bind.JAXBElement<SubjectConfirmationType> createSubjectConfirmation(SubjectConfirmationType sct)

createSubjectConfirmationData

public static SubjectConfirmationDataType createSubjectConfirmationData(java.lang.String inResponseTo,
                                                                        java.lang.String destinationURI,
                                                                        javax.xml.datatype.XMLGregorianCalendar issueInstant)

createUUID

public static java.lang.String createUUID()
Get a UUID String

Returns:

getObjectFactory

public static ObjectFactory getObjectFactory()

getIssuer

public static NameIDType getIssuer(java.lang.String issuerID)
Return the NameIDType for the issuer

Parameters:
issuerID -
Returns:

getMarshaller

public static javax.xml.bind.Marshaller getMarshaller(java.lang.String pkgName)
                                               throws java.lang.Exception
Get the JAXB Marshaller

Parameters:
pkgName - The package name for the jaxb context
Returns:
Marshaller
Throws:
java.lang.Exception

getValidatingMarshaller

public static javax.xml.bind.Marshaller getValidatingMarshaller(java.lang.String pkgName,
                                                                java.lang.String schemaLocation)
                                                         throws java.lang.Exception
Get the JAXB Marshaller

Parameters:
pkgName - The package name for the jaxb context
schemaLocation - location of the schema to validate against
Returns:
Marshaller
Throws:
java.lang.Exception

getUnmarshaller

public static javax.xml.bind.Unmarshaller getUnmarshaller(java.lang.String pkgName)
                                                   throws java.lang.Exception
Get the JAXB Unmarshaller

Parameters:
pkgName - The package name for the jaxb context
Returns:
unmarshaller
Throws:
java.lang.Exception

getValidatingUnmarshaller

public static javax.xml.bind.Unmarshaller getValidatingUnmarshaller(java.lang.String pkgName,
                                                                    java.lang.String schemaLocation)
                                                             throws java.lang.Exception
Get the JAXB Unmarshaller

Parameters:
pkgName - The package name for the jaxb context
schemaLocation - location of the schema to validate against
Returns:
unmarshaller
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.