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 Action
createAction()
Returns a new instance ofAction
.Action
createAction(String xml)
Returns a new instance ofAction
.Action
createAction(Element elem)
Returns a new instance ofAction
.Advice
createAdvice()
Returns a new instance ofAdvice
.Advice
createAdvice(String xml)
Returns a new instance ofAdvice
The return object is immutable.Advice
createAdvice(Element elem)
Returns a new instance ofAdvice
.Assertion
createAssertion()
Returns a new instance ofAssertion
.Assertion
createAssertion(String xml)
Returns a new instance ofAssertion
.Assertion
createAssertion(Element elem)
Returns a new instance ofAssertion
.AssertionIDRef
createAssertionIDRef()
Returns a new instance ofAssertionIDRef
.AssertionIDRef
createAssertionIDRef(String xml)
Returns a new instance ofAssertionIDRef
.AssertionIDRef
createAssertionIDRef(Element elem)
Returns a new instance ofAssertionIDRef
.Attribute
createAttribute()
Returns a new instance ofAttribute
.Attribute
createAttribute(String xml)
Returns a new instance ofAttribute
.Attribute
createAttribute(Element elem)
Returns a new instance ofAttribute
.AttributeStatement
createAttributeStatement()
Returns a new instance ofAttributeStatement
.AttributeStatement
createAttributeStatement(String xml)
Returns a new instance ofAttributeStatement
.AttributeStatement
createAttributeStatement(Element elem)
Returns a new instance ofAttributeStatement
.AudienceRestriction
createAudienceRestriction()
Returns a new instance ofAudienceRestriction
.AudienceRestriction
createAudienceRestriction(String xml)
Returns a new instance ofAudienceRestriction
.AudienceRestriction
createAudienceRestriction(Element elem)
Returns a new instance ofAudienceRestriction
.AuthnContext
createAuthnContext()
Returns a new instance ofAuthnContext
.AuthnContext
createAuthnContext(String xml)
Returns a new instance ofAuthnContext
.AuthnContext
createAuthnContext(Element elem)
Returns a new instance ofAuthnContext
.AuthnStatement
createAuthnStatement()
Returns a new instance ofAuthnStatement
.AuthnStatement
createAuthnStatement(String xml)
Returns a new instance ofAuthnStatement
.AuthnStatement
createAuthnStatement(Element elem)
Returns a new instance ofAuthnStatement
.AuthzDecisionStatement
createAuthzDecisionStatement()
Returns a new instance ofAuthzDecisionStatement
.AuthzDecisionStatement
createAuthzDecisionStatement(String xml)
Returns a new instance ofAuthzDecisionStatement
.AuthzDecisionStatement
createAuthzDecisionStatement(Element elem)
Returns a new instance ofAuthzDecisionStatement
.BaseID
createBaseID()
Returns a new instance ofBaseID
.BaseID
createBaseID(String xml)
Returns a new instance ofBaseID
.BaseID
createBaseID(Element elem)
Returns a new instance ofBaseID
.Condition
createCondition()
Returns a new instance ofCondition
.Condition
createCondition(String xml)
Returns a new instance ofCondition
.Condition
createCondition(Element elem)
Returns a new instance ofCondition
.Conditions
createConditions()
Returns a new instance ofConditions
.Conditions
createConditions(String xml)
Returns a new instance ofConditions
.Conditions
createConditions(Element elem)
Returns a new instance ofConditions
.EncryptedAssertion
createEncryptedAssertion(String xml)
Returns a new instance ofEncryptedAssertion
.EncryptedAssertion
createEncryptedAssertion(Element elem)
Returns a new instance ofEncryptedAssertion
.EncryptedAttribute
createEncryptedAttribute(String xml)
Returns a new instance ofEncryptedAttribute
.EncryptedAttribute
createEncryptedAttribute(Element elem)
Returns a new instance ofEncryptedAttribute
.EncryptedID
createEncryptedID(String xml)
Returns a new instance ofEncryptedID
.EncryptedID
createEncryptedID(Element elem)
Returns a new instance ofEncryptedID
.Evidence
createEvidence()
Returns a new instance ofEvidence
.Evidence
createEvidence(String xml)
Returns a new instance ofEvidence
.Evidence
createEvidence(Element elem)
Returns a new instance ofEvidence
.Issuer
createIssuer()
Returns a new instance ofIssuer
.Issuer
createIssuer(String xml)
Returns a new instance ofIssuer
.Issuer
createIssuer(Element elem)
Returns a new instance ofIssuer
.KeyInfoConfirmationData
createKeyInfoConfirmationData()
Returns a new instance ofKeyInfoConfirmationData
.KeyInfoConfirmationData
createKeyInfoConfirmationData(String xml)
Returns a new instance ofKeyInfoConfirmationData
.KeyInfoConfirmationData
createKeyInfoConfirmationData(Element elem)
Returns a new instance ofKeyInfoConfirmationData
.NameID
createNameID()
Returns a new instance ofNameID
.NameID
createNameID(String xml)
Returns a new instance ofNameID
.NameID
createNameID(Element elem)
Returns a new instance ofNameID
.OneTimeUse
createOneTimeUse()
Returns a new instance ofOneTimeUse
.OneTimeUse
createOneTimeUse(String xml)
Returns a new instance ofOneTimeUse
.OneTimeUse
createOneTimeUse(Element elem)
Returns a new instance ofOneTimeUse
.ProxyRestriction
createProxyRestriction()
Returns a new instance ofProxyRestriction
.ProxyRestriction
createProxyRestriction(String xml)
Returns a new instance ofProxyRestriction
.ProxyRestriction
createProxyRestriction(Element elem)
Returns a new instance ofProxyRestriction
.Subject
createSubject()
Returns a new instance ofSubject
.Subject
createSubject(String xml)
Returns a new instance ofSubject
.Subject
createSubject(Element elem)
Returns a new instance ofSubject
.SubjectConfirmation
createSubjectConfirmation()
Returns a new instance ofSubjectConfirmation
.SubjectConfirmation
createSubjectConfirmation(String xml)
Returns a new instance ofSubjectConfirmation
.SubjectConfirmation
createSubjectConfirmation(Element elem)
Returns a new instance ofSubjectConfirmation
.SubjectConfirmationData
createSubjectConfirmationData()
Returns a new instance ofSubjectConfirmationData
.SubjectConfirmationData
createSubjectConfirmationData(String xml)
Returns a new instance ofSubjectConfirmationData
.SubjectConfirmationData
createSubjectConfirmationData(Element elem)
Returns a new instance ofSubjectConfirmationData
.SubjectLocality
createSubjectLocality()
Returns a new instance ofSubjectLocality
.SubjectLocality
createSubjectLocality(String xml)
Returns a new instance ofSubjectLocality
.SubjectLocality
createSubjectLocality(Element elem)
Returns a new instance ofSubjectLocality
.static AssertionFactory
getInstance()
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 ofAdvice
The 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
- anElement
representingAction
.- 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
- anElement
representation 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
- anElement
representation 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
- anElement
representation 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
- anElement
representation 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
- anElement
representation 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
- anElement
representation 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
- aElement
representation 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
- anElement
representingSubjectLocality
.- 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.
-
-