Package com.sun.identity.saml2.assertion
Class AssertionFactory
- java.lang.Object
 - 
- com.sun.identity.saml2.assertion.AssertionFactory
 
 
- 
@SupportedAll public class AssertionFactory extends Object
This is the factory class to obtain instances of the objects defined in assertion schema. There are three ways to obtain an instance of a object type: with no parameters, with a DOM tree element, or with an XML String. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActioncreateAction()Returns a new instance ofAction.ActioncreateAction(String xml)Returns a new instance ofAction.ActioncreateAction(Element elem)Returns a new instance ofAction.AdvicecreateAdvice()Returns a new instance ofAdvice.AdvicecreateAdvice(String xml)Returns a new instance ofAdviceThe return object is immutable.AdvicecreateAdvice(Element elem)Returns a new instance ofAdvice.AssertioncreateAssertion()Returns a new instance ofAssertion.AssertioncreateAssertion(String xml)Returns a new instance ofAssertion.AssertioncreateAssertion(Element elem)Returns a new instance ofAssertion.AssertionIDRefcreateAssertionIDRef()Returns a new instance ofAssertionIDRef.AssertionIDRefcreateAssertionIDRef(String xml)Returns a new instance ofAssertionIDRef.AssertionIDRefcreateAssertionIDRef(Element elem)Returns a new instance ofAssertionIDRef.AttributecreateAttribute()Returns a new instance ofAttribute.AttributecreateAttribute(String xml)Returns a new instance ofAttribute.AttributecreateAttribute(Element elem)Returns a new instance ofAttribute.AttributeStatementcreateAttributeStatement()Returns a new instance ofAttributeStatement.AttributeStatementcreateAttributeStatement(String xml)Returns a new instance ofAttributeStatement.AttributeStatementcreateAttributeStatement(Element elem)Returns a new instance ofAttributeStatement.AudienceRestrictioncreateAudienceRestriction()Returns a new instance ofAudienceRestriction.AudienceRestrictioncreateAudienceRestriction(String xml)Returns a new instance ofAudienceRestriction.AudienceRestrictioncreateAudienceRestriction(Element elem)Returns a new instance ofAudienceRestriction.AuthnContextcreateAuthnContext()Returns a new instance ofAuthnContext.AuthnContextcreateAuthnContext(String xml)Returns a new instance ofAuthnContext.AuthnContextcreateAuthnContext(Element elem)Returns a new instance ofAuthnContext.AuthnStatementcreateAuthnStatement()Returns a new instance ofAuthnStatement.AuthnStatementcreateAuthnStatement(String xml)Returns a new instance ofAuthnStatement.AuthnStatementcreateAuthnStatement(Element elem)Returns a new instance ofAuthnStatement.AuthzDecisionStatementcreateAuthzDecisionStatement()Returns a new instance ofAuthzDecisionStatement.AuthzDecisionStatementcreateAuthzDecisionStatement(String xml)Returns a new instance ofAuthzDecisionStatement.AuthzDecisionStatementcreateAuthzDecisionStatement(Element elem)Returns a new instance ofAuthzDecisionStatement.BaseIDcreateBaseID()Returns a new instance ofBaseID.BaseIDcreateBaseID(String xml)Returns a new instance ofBaseID.BaseIDcreateBaseID(Element elem)Returns a new instance ofBaseID.ConditioncreateCondition()Returns a new instance ofCondition.ConditioncreateCondition(String xml)Returns a new instance ofCondition.ConditioncreateCondition(Element elem)Returns a new instance ofCondition.ConditionscreateConditions()Returns a new instance ofConditions.ConditionscreateConditions(String xml)Returns a new instance ofConditions.ConditionscreateConditions(Element elem)Returns a new instance ofConditions.EncryptedAssertioncreateEncryptedAssertion(String xml)Returns a new instance ofEncryptedAssertion.EncryptedAssertioncreateEncryptedAssertion(Element elem)Returns a new instance ofEncryptedAssertion.EncryptedAttributecreateEncryptedAttribute(String xml)Returns a new instance ofEncryptedAttribute.EncryptedAttributecreateEncryptedAttribute(Element elem)Returns a new instance ofEncryptedAttribute.EncryptedIDcreateEncryptedID(String xml)Returns a new instance ofEncryptedID.EncryptedIDcreateEncryptedID(Element elem)Returns a new instance ofEncryptedID.EvidencecreateEvidence()Returns a new instance ofEvidence.EvidencecreateEvidence(String xml)Returns a new instance ofEvidence.EvidencecreateEvidence(Element elem)Returns a new instance ofEvidence.IssuercreateIssuer()Returns a new instance ofIssuer.IssuercreateIssuer(String xml)Returns a new instance ofIssuer.IssuercreateIssuer(Element elem)Returns a new instance ofIssuer.KeyInfoConfirmationDatacreateKeyInfoConfirmationData()Returns a new instance ofKeyInfoConfirmationData.KeyInfoConfirmationDatacreateKeyInfoConfirmationData(String xml)Returns a new instance ofKeyInfoConfirmationData.KeyInfoConfirmationDatacreateKeyInfoConfirmationData(Element elem)Returns a new instance ofKeyInfoConfirmationData.NameIDcreateNameID()Returns a new instance ofNameID.NameIDcreateNameID(String xml)Returns a new instance ofNameID.NameIDcreateNameID(Element elem)Returns a new instance ofNameID.OneTimeUsecreateOneTimeUse()Returns a new instance ofOneTimeUse.OneTimeUsecreateOneTimeUse(String xml)Returns a new instance ofOneTimeUse.OneTimeUsecreateOneTimeUse(Element elem)Returns a new instance ofOneTimeUse.ProxyRestrictioncreateProxyRestriction()Returns a new instance ofProxyRestriction.ProxyRestrictioncreateProxyRestriction(String xml)Returns a new instance ofProxyRestriction.ProxyRestrictioncreateProxyRestriction(Element elem)Returns a new instance ofProxyRestriction.SubjectcreateSubject()Returns a new instance ofSubject.SubjectcreateSubject(String xml)Returns a new instance ofSubject.SubjectcreateSubject(Element elem)Returns a new instance ofSubject.SubjectConfirmationcreateSubjectConfirmation()Returns a new instance ofSubjectConfirmation.SubjectConfirmationcreateSubjectConfirmation(String xml)Returns a new instance ofSubjectConfirmation.SubjectConfirmationcreateSubjectConfirmation(Element elem)Returns a new instance ofSubjectConfirmation.SubjectConfirmationDatacreateSubjectConfirmationData()Returns a new instance ofSubjectConfirmationData.SubjectConfirmationDatacreateSubjectConfirmationData(String xml)Returns a new instance ofSubjectConfirmationData.SubjectConfirmationDatacreateSubjectConfirmationData(Element elem)Returns a new instance ofSubjectConfirmationData.SubjectLocalitycreateSubjectLocality()Returns a new instance ofSubjectLocality.SubjectLocalitycreateSubjectLocality(String xml)Returns a new instance ofSubjectLocality.SubjectLocalitycreateSubjectLocality(Element elem)Returns a new instance ofSubjectLocality.static AssertionFactorygetInstance()Returns the instance ofAssertionFactory. 
 - 
 
- 
- 
Method Detail
- 
getInstance
public static AssertionFactory getInstance()
Returns the instance ofAssertionFactory.- Returns:
 AssertionFactory.
 
- 
createAdvice
public Advice createAdvice()
Returns a new instance ofAdvice.- Returns:
 - a new instance of 
Advice 
 
- 
createAdvice
public Advice createAdvice(Element elem) throws SAML2Exception
Returns a new instance ofAdvice. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofAdvice- Returns:
 - a new instance of 
Advice - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createAdvice
public Advice createAdvice(String xml) throws SAML2Exception
Returns a new instance ofAdviceThe return object is immutable.- Parameters:
 xml- a XML string representation ofAdvice- Returns:
 - a new instance of 
Advice - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createAssertion
public Assertion createAssertion()
Returns a new instance ofAssertion.- Returns:
 - a new instance of 
Assertion 
 
- 
createAssertion
public Assertion createAssertion(Element elem) throws SAML2Exception
Returns a new instance ofAssertion. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofAssertion- Returns:
 - a new instance of 
Assertion - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createAssertion
public Assertion createAssertion(String xml) throws SAML2Exception
Returns a new instance ofAssertion. The return object is immutable.- Parameters:
 xml- a XML string representation ofAssertion- Returns:
 - a new instance of 
Assertion - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createAssertionIDRef
public AssertionIDRef createAssertionIDRef()
Returns a new instance ofAssertionIDRef.- Returns:
 - a new instance of 
AssertionIDRef 
 
- 
createAssertionIDRef
public AssertionIDRef createAssertionIDRef(Element elem) throws SAML2Exception
Returns a new instance ofAssertionIDRef. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofAssertionIDRef- Returns:
 - a new instance of 
AssertionIDRef - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createAssertionIDRef
public AssertionIDRef createAssertionIDRef(String xml) throws SAML2Exception
Returns a new instance ofAssertionIDRef. The return object is immutable.- Parameters:
 xml- a XML string representation ofAssertionIDRef- Returns:
 - a new instance of 
AssertionIDRef - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createAudienceRestriction
public AudienceRestriction createAudienceRestriction()
Returns a new instance ofAudienceRestriction.- Returns:
 - a new instance of 
AudienceRestriction 
 
- 
createAudienceRestriction
public AudienceRestriction createAudienceRestriction(Element elem) throws SAML2Exception
Returns a new instance ofAudienceRestriction. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofAudienceRestriction- Returns:
 - a new instance of 
AudienceRestriction - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createAudienceRestriction
public AudienceRestriction createAudienceRestriction(String xml) throws SAML2Exception
Returns a new instance ofAudienceRestriction. The return object is immutable.- Parameters:
 xml- a XML string representation ofAudienceRestriction- Returns:
 - a new instance of 
AudienceRestriction - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createBaseID
public BaseID createBaseID()
Returns a new instance ofBaseID.- Returns:
 - a new instance of 
BaseID 
 
- 
createBaseID
public BaseID createBaseID(Element elem) throws SAML2Exception
Returns a new instance ofBaseID. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofBaseID- Returns:
 - a new instance of 
BaseID - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createBaseID
public BaseID createBaseID(String xml) throws SAML2Exception
Returns a new instance ofBaseID. The return object is immutable.- Parameters:
 xml- a XML string representation ofBaseID- Returns:
 - a new instance of 
BaseID - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createCondition
public Condition createCondition()
Returns a new instance ofCondition.- Returns:
 - a new instance of 
Condition 
 
- 
createCondition
public Condition createCondition(Element elem) throws SAML2Exception
Returns a new instance ofCondition. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofCondition- Returns:
 - a new instance of 
Condition - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createCondition
public Condition createCondition(String xml) throws SAML2Exception
Returns a new instance ofCondition. The return object is immutable.- Parameters:
 xml- a XML string representation ofCondition- Returns:
 - a new instance of 
Condition - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createConditions
public Conditions createConditions()
Returns a new instance ofConditions.- Returns:
 - a new instance of 
Conditions 
 
- 
createConditions
public Conditions createConditions(Element elem) throws SAML2Exception
Returns a new instance ofConditions. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofConditions- Returns:
 - a new instance of 
Conditions - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createConditions
public Conditions createConditions(String xml) throws SAML2Exception
Returns a new instance ofConditions. The return object is immutable.- Parameters:
 xml- a XML string representation ofConditions- Returns:
 - a new instance of 
Conditions - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createEncryptedAssertion
public EncryptedAssertion createEncryptedAssertion(Element elem) throws SAML2Exception
Returns a new instance ofEncryptedAssertion. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofEncryptedAssertion- Returns:
 - a new instance of 
EncryptedAssertion - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createEncryptedAssertion
public EncryptedAssertion createEncryptedAssertion(String xml) throws SAML2Exception
Returns a new instance ofEncryptedAssertion. The return object is immutable.- Parameters:
 xml- a XML string representation ofEncryptedAssertion- Returns:
 - a new instance of 
EncryptedAssertion - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createEncryptedID
public EncryptedID createEncryptedID(Element elem) throws SAML2Exception
Returns a new instance ofEncryptedID. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofEncryptedID- Returns:
 - a new instance of 
EncryptedID - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createEncryptedID
public EncryptedID createEncryptedID(String xml) throws SAML2Exception
Returns a new instance ofEncryptedID. The return object is immutable.- Parameters:
 xml- a XML string representation ofEncryptedID- Returns:
 - a new instance of 
EncryptedID - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createIssuer
public Issuer createIssuer()
Returns a new instance ofIssuer.- Returns:
 - a new instance of 
Issuer 
 
- 
createIssuer
public Issuer createIssuer(Element elem) throws SAML2Exception
Returns a new instance ofIssuer. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofIssuer- Returns:
 - a new instance of 
Issuer - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createIssuer
public Issuer createIssuer(String xml) throws SAML2Exception
Returns a new instance ofIssuer. The return object is immutable.- Parameters:
 xml- a XML string representation ofIssuer- Returns:
 - a new instance of 
Issuer - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createKeyInfoConfirmationData
public KeyInfoConfirmationData createKeyInfoConfirmationData()
Returns a new instance ofKeyInfoConfirmationData.- Returns:
 - a new instance of 
KeyInfoConfirmationData 
 
- 
createKeyInfoConfirmationData
public KeyInfoConfirmationData createKeyInfoConfirmationData(Element elem) throws SAML2Exception
Returns a new instance ofKeyInfoConfirmationData. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofKeyInfoConfirmationData- Returns:
 - a new instance of 
KeyInfoConfirmationData - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createKeyInfoConfirmationData
public KeyInfoConfirmationData createKeyInfoConfirmationData(String xml) throws SAML2Exception
Returns a new instance ofKeyInfoConfirmationData. The return object is immutable.- Parameters:
 xml- a XML string representation ofKeyInfoConfirmationData- Returns:
 - a new instance of 
KeyInfoConfirmationData - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createNameID
public NameID createNameID()
Returns a new instance ofNameID.- Returns:
 - a new instance of 
NameID 
 
- 
createNameID
public NameID createNameID(Element elem) throws SAML2Exception
Returns a new instance ofNameID. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofNameID- Returns:
 - a new instance of 
NameID - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createNameID
public NameID createNameID(String xml) throws SAML2Exception
Returns a new instance ofNameID. The return object is immutable.- Parameters:
 xml- a XML string representation ofNameID- Returns:
 - a new instance of 
NameID - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createOneTimeUse
public OneTimeUse createOneTimeUse()
Returns a new instance ofOneTimeUse.- Returns:
 - a new instance of 
OneTimeUse 
 
- 
createOneTimeUse
public OneTimeUse createOneTimeUse(Element elem) throws SAML2Exception
Returns a new instance ofOneTimeUse. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofOneTimeUse- Returns:
 - a new instance of 
OneTimeUse - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createOneTimeUse
public OneTimeUse createOneTimeUse(String xml) throws SAML2Exception
Returns a new instance ofOneTimeUse. The return object is immutable.- Parameters:
 xml- a XML string representation ofOneTimeUse- Returns:
 - a new instance of 
OneTimeUse - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createProxyRestriction
public ProxyRestriction createProxyRestriction()
Returns a new instance ofProxyRestriction.- Returns:
 - a new instance of 
ProxyRestriction 
 
- 
createProxyRestriction
public ProxyRestriction createProxyRestriction(Element elem) throws SAML2Exception
Returns a new instance ofProxyRestriction. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofProxyRestriction- Returns:
 - a new instance of 
ProxyRestriction - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createProxyRestriction
public ProxyRestriction createProxyRestriction(String xml) throws SAML2Exception
Returns a new instance ofProxyRestriction. The return object is immutable.- Parameters:
 xml- a XML string representation ofProxyRestriction- Returns:
 - a new instance of 
ProxyRestriction - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createSubject
public Subject createSubject()
Returns a new instance ofSubject.- Returns:
 - a new instance of 
Subject 
 
- 
createSubject
public Subject createSubject(Element elem) throws SAML2Exception
Returns a new instance ofSubject. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofSubject- Returns:
 - a new instance of 
Subject - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createSubject
public Subject createSubject(String xml) throws SAML2Exception
Returns a new instance ofSubject. The return object is immutable.- Parameters:
 xml- a XML string representation ofSubject- Returns:
 - a new instance of 
Subject - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation()
Returns a new instance ofSubjectConfirmation.- Returns:
 - a new instance of 
SubjectConfirmation 
 
- 
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(Element elem) throws SAML2Exception
Returns a new instance ofSubjectConfirmation. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofSubjectConfirmation- Returns:
 - a new instance of 
SubjectConfirmation - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(String xml) throws SAML2Exception
Returns a new instance ofSubjectConfirmation. The return object is immutable.- Parameters:
 xml- a XML string representation ofSubjectConfirmation- Returns:
 - a new instance of 
SubjectConfirmation - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData()
Returns a new instance ofSubjectConfirmationData.- Returns:
 - a new instance of 
SubjectConfirmationData 
 
- 
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData(Element elem) throws SAML2Exception
Returns a new instance ofSubjectConfirmationData. The return object is immutable.- Parameters:
 elem- a DOM Element representation ofSubjectConfirmationData- Returns:
 - a new instance of 
SubjectConfirmationData - Throws:
 SAML2Exception- if error occurs while processing the DOM Element
 
- 
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData(String xml) throws SAML2Exception
Returns a new instance ofSubjectConfirmationData. The return object is immutable.- Parameters:
 xml- a XML string representation ofSubjectConfirmationData- Returns:
 - a new instance of 
SubjectConfirmationData - Throws:
 SAML2Exception- if error occurs while processing the XML string
 
- 
createAction
public Action createAction()
Returns a new instance ofAction. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
Action. 
 
- 
createAction
public Action createAction(Element elem) throws SAML2Exception
Returns a new instance ofAction. The return object is immutable.- Parameters:
 elem- anElementrepresentingAction.- Returns:
 - a new instance of 
Action. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createAction
public Action createAction(String xml) throws SAML2Exception
Returns a new instance ofAction. The return object is immutable.- Parameters:
 xml- an XML String representingAction.- Returns:
 - a new instance of 
Action. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createAttribute
public Attribute createAttribute()
Returns a new instance ofAttribute. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
Attribute. 
 
- 
createAttribute
public Attribute createAttribute(Element elem) throws SAML2Exception
Returns a new instance ofAttribute. The return object is immutable.- Parameters:
 elem- anElementrepresentation ofAttribute.- Returns:
 - a new instance of 
Attribute. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createAttribute
public Attribute createAttribute(String xml) throws SAML2Exception
Returns a new instance ofAttribute. The return object is immutable.- Parameters:
 xml- an XML String representingAttribute.- Returns:
 - a new instance of 
Attribute. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createAttributeStatement
public AttributeStatement createAttributeStatement()
Returns a new instance ofAttributeStatement. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
AttributeStatement. 
 
- 
createAttributeStatement
public AttributeStatement createAttributeStatement(Element elem) throws SAML2Exception
Returns a new instance ofAttributeStatement. The return object is immutable.- Parameters:
 elem- anElementrepresentation ofAttributeStatement.- Returns:
 - a new instance of 
AttributeStatement. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createAttributeStatement
public AttributeStatement createAttributeStatement(String xml) throws SAML2Exception
Returns a new instance ofAttributeStatement. The return object is immutable.- Parameters:
 xml- an XML String representingAttributeStatement.- Returns:
 - a new instance of 
AttributeStatement. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createAuthnContext
public AuthnContext createAuthnContext()
Returns a new instance ofAuthnContext. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
AuthnContext. 
 
- 
createAuthnContext
public AuthnContext createAuthnContext(Element elem) throws SAML2Exception
Returns a new instance ofAuthnContext. The return object is immutable.- Parameters:
 elem- anElementrepresentation ofAuthnContext.- Returns:
 - a new instance of 
AuthnContext. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createAuthnContext
public AuthnContext createAuthnContext(String xml) throws SAML2Exception
Returns a new instance ofAuthnContext. The return object is immutable.- Parameters:
 xml- an XML String representingAuthnContext.- Returns:
 - a new instance of 
AuthnContext. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createAuthnStatement
public AuthnStatement createAuthnStatement()
Returns a new instance ofAuthnStatement. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
AuthnStatement. 
 
- 
createAuthnStatement
public AuthnStatement createAuthnStatement(Element elem) throws SAML2Exception
Returns a new instance ofAuthnStatement. The return object is immutable.- Parameters:
 elem- anElementrepresentation ofAuthnStatement.- Returns:
 - a new instance of 
AuthnStatement. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createAuthnStatement
public AuthnStatement createAuthnStatement(String xml) throws SAML2Exception
Returns a new instance ofAuthnStatement. The return object is immutable.- Parameters:
 xml- an XML String representingAuthnStatement.- Returns:
 - a new instance of 
AuthnStatement. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createAuthzDecisionStatement
public AuthzDecisionStatement createAuthzDecisionStatement()
Returns a new instance ofAuthzDecisionStatement. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
AuthzDecisionStatement. 
 
- 
createAuthzDecisionStatement
public AuthzDecisionStatement createAuthzDecisionStatement(Element elem) throws SAML2Exception
Returns a new instance ofAuthzDecisionStatement. The return object is immutable.- Parameters:
 elem- anElementrepresentation ofAuthzDecisionStatement.- Returns:
 - a new instance of 
AuthzDecisionStatement. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createAuthzDecisionStatement
public AuthzDecisionStatement createAuthzDecisionStatement(String xml) throws SAML2Exception
Returns a new instance ofAuthzDecisionStatement. The return object is immutable.- Parameters:
 xml- an XML String representingAuthzDecisionStatement.- Returns:
 - a new instance of 
AuthzDecisionStatement. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createEncryptedAttribute
public EncryptedAttribute createEncryptedAttribute(Element elem) throws SAML2Exception
Returns a new instance ofEncryptedAttribute. The return object is immutable.- Parameters:
 elem- anElementrepresentation ofEncryptedAttribute.- Returns:
 - a new instance of 
EncryptedAttribute. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createEncryptedAttribute
public EncryptedAttribute createEncryptedAttribute(String xml) throws SAML2Exception
Returns a new instance ofEncryptedAttribute. The return object is immutable.- Parameters:
 xml- an XML String representingEncryptedAttribute. .- Returns:
 - a new instance of 
EncryptedAttribute. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createEvidence
public Evidence createEvidence()
Returns a new instance ofEvidence. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
Evidence. 
 
- 
createEvidence
public Evidence createEvidence(Element elem) throws SAML2Exception
Returns a new instance ofEvidence. The return object is immutable.- Parameters:
 elem- aElementrepresentation ofEvidence.- Returns:
 - a new instance of 
Evidence. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createEvidence
public Evidence createEvidence(String xml) throws SAML2Exception
Returns a new instance ofEvidence. The return object is immutable.- Parameters:
 xml- an XML String representingEvidence.- Returns:
 - a new instance of 
Evidence. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
- 
createSubjectLocality
public SubjectLocality createSubjectLocality()
Returns a new instance ofSubjectLocality. Caller may need to call setters of the class to populate the object.- Returns:
 - a new instance of 
SubjectLocality. 
 
- 
createSubjectLocality
public SubjectLocality createSubjectLocality(Element elem) throws SAML2Exception
Returns a new instance ofSubjectLocality. The return object is immutable.- Parameters:
 elem- anElementrepresentingSubjectLocality.- Returns:
 - a new instance of 
SubjectLocality. - Throws:
 SAML2Exception- if error occurs while processing theElement.
 
- 
createSubjectLocality
public SubjectLocality createSubjectLocality(String xml) throws SAML2Exception
Returns a new instance ofSubjectLocality. The return object is immutable.- Parameters:
 xml- an XML String representingSubjectLocality.- Returns:
 - a new instance of 
SubjectLocality. - Throws:
 SAML2Exception- if error occurs while processing the XML string.
 
 - 
 
 -