Package com.sun.identity.saml2.assertion
Class AssertionFactory
java.lang.Object
com.sun.identity.saml2.assertion.AssertionFactory
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
Modifier and TypeMethodDescriptionReturns a new instance ofAction
.createAction
(String xml) Returns a new instance ofAction
.createAction
(Element elem) Returns a new instance ofAction
.Returns a new instance ofAdvice
.createAdvice
(String xml) Returns a new instance ofAdvice
The return object is immutable.createAdvice
(Element elem) Returns a new instance ofAdvice
.Returns a new instance ofAssertion
.createAssertion
(String xml) Returns a new instance ofAssertion
.createAssertion
(Element elem) Returns a new instance ofAssertion
.Returns a new instance ofAssertionIDRef
.Returns a new instance ofAssertionIDRef
.createAssertionIDRef
(Element elem) Returns a new instance ofAssertionIDRef
.Returns a new instance ofAttribute
.createAttribute
(String xml) Returns a new instance ofAttribute
.createAttribute
(Element elem) Returns a new instance ofAttribute
.Returns a new instance ofAttributeStatement
.Returns a new instance ofAttributeStatement
.Returns a new instance ofAttributeStatement
.Returns a new instance ofAudienceRestriction
.Returns a new instance ofAudienceRestriction
.Returns a new instance ofAudienceRestriction
.Returns a new instance ofAuthnContext
.createAuthnContext
(String xml) Returns a new instance ofAuthnContext
.createAuthnContext
(Element elem) Returns a new instance ofAuthnContext
.Returns a new instance ofAuthnStatement
.Returns a new instance ofAuthnStatement
.createAuthnStatement
(Element elem) Returns a new instance ofAuthnStatement
.Returns a new instance ofAuthzDecisionStatement
.Returns a new instance ofAuthzDecisionStatement
.Returns a new instance ofAuthzDecisionStatement
.Returns a new instance ofBaseID
.createBaseID
(String xml) Returns a new instance ofBaseID
.createBaseID
(Element elem) Returns a new instance ofBaseID
.Returns a new instance ofCondition
.createCondition
(String xml) Returns a new instance ofCondition
.createCondition
(Element elem) Returns a new instance ofCondition
.Returns a new instance ofConditions
.createConditions
(String xml) Returns a new instance ofConditions
.createConditions
(Element elem) Returns a new instance ofConditions
.Returns a new instance ofEncryptedAssertion
.Returns a new instance ofEncryptedAssertion
.Returns a new instance ofEncryptedAttribute
.Returns a new instance ofEncryptedAttribute
.createEncryptedID
(String xml) Returns a new instance ofEncryptedID
.createEncryptedID
(Element elem) Returns a new instance ofEncryptedID
.Returns a new instance ofEvidence
.createEvidence
(String xml) Returns a new instance ofEvidence
.createEvidence
(Element elem) Returns a new instance ofEvidence
.Returns a new instance ofIssuer
.createIssuer
(String xml) Returns a new instance ofIssuer
.createIssuer
(Element elem) Returns a new instance ofIssuer
.Returns a new instance ofKeyInfoConfirmationData
.Returns a new instance ofKeyInfoConfirmationData
.Returns a new instance ofKeyInfoConfirmationData
.Returns a new instance ofNameID
.createNameID
(String xml) Returns a new instance ofNameID
.createNameID
(Element elem) Returns a new instance ofNameID
.Returns a new instance ofOneTimeUse
.createOneTimeUse
(String xml) Returns a new instance ofOneTimeUse
.createOneTimeUse
(Element elem) Returns a new instance ofOneTimeUse
.Returns a new instance ofProxyRestriction
.Returns a new instance ofProxyRestriction
.Returns a new instance ofProxyRestriction
.Returns a new instance ofSubject
.createSubject
(String xml) Returns a new instance ofSubject
.createSubject
(Element elem) Returns a new instance ofSubject
.Returns a new instance ofSubjectConfirmation
.Returns a new instance ofSubjectConfirmation
.Returns a new instance ofSubjectConfirmation
.Returns a new instance ofSubjectConfirmationData
.Returns a new instance ofSubjectConfirmationData
.Returns a new instance ofSubjectConfirmationData
.Returns a new instance ofSubjectLocality
.Returns a new instance ofSubjectLocality
.createSubjectLocality
(Element elem) Returns a new instance ofSubjectLocality
.static AssertionFactory
Returns the instance ofAssertionFactory
.
-
Method Details
-
getInstance
Returns the instance ofAssertionFactory
.- Returns:
AssertionFactory
.
-
createAdvice
Returns a new instance ofAdvice
.- Returns:
- a new instance of
Advice
-
createAdvice
Returns a new instance ofAdvice
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofAdvice
- Returns:
- a new instance of
Advice
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createAdvice
Returns a new instance ofAdvice
The return object is immutable.- Parameters:
xml
- a XML string representation ofAdvice
- Returns:
- a new instance of
Advice
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createAssertion
Returns a new instance ofAssertion
.- Returns:
- a new instance of
Assertion
-
createAssertion
Returns a new instance ofAssertion
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofAssertion
- Returns:
- a new instance of
Assertion
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createAssertion
Returns a new instance ofAssertion
. The return object is immutable.- Parameters:
xml
- a XML string representation ofAssertion
- Returns:
- a new instance of
Assertion
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createAssertionIDRef
Returns a new instance ofAssertionIDRef
.- Returns:
- a new instance of
AssertionIDRef
-
createAssertionIDRef
public AssertionIDRef createAssertionIDRef(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createAssertionIDRef
public AssertionIDRef createAssertionIDRef(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createAudienceRestriction
Returns a new instance ofAudienceRestriction
.- Returns:
- a new instance of
AudienceRestriction
-
createAudienceRestriction
public AudienceRestriction createAudienceRestriction(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createAudienceRestriction
public AudienceRestriction createAudienceRestriction(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createBaseID
Returns a new instance ofBaseID
.- Returns:
- a new instance of
BaseID
-
createBaseID
Returns a new instance ofBaseID
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofBaseID
- Returns:
- a new instance of
BaseID
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createBaseID
Returns a new instance ofBaseID
. The return object is immutable.- Parameters:
xml
- a XML string representation ofBaseID
- Returns:
- a new instance of
BaseID
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createCondition
Returns a new instance ofCondition
.- Returns:
- a new instance of
Condition
-
createCondition
Returns a new instance ofCondition
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofCondition
- Returns:
- a new instance of
Condition
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createCondition
Returns a new instance ofCondition
. The return object is immutable.- Parameters:
xml
- a XML string representation ofCondition
- Returns:
- a new instance of
Condition
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createConditions
Returns a new instance ofConditions
.- Returns:
- a new instance of
Conditions
-
createConditions
public Conditions createConditions(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createConditions
Returns a new instance ofConditions
. The return object is immutable.- Parameters:
xml
- a XML string representation ofConditions
- Returns:
- a new instance of
Conditions
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createEncryptedAssertion
public EncryptedAssertion createEncryptedAssertion(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createEncryptedAssertion
public EncryptedAssertion createEncryptedAssertion(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createEncryptedID
public EncryptedID createEncryptedID(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createEncryptedID
public EncryptedID createEncryptedID(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createIssuer
Returns a new instance ofIssuer
.- Returns:
- a new instance of
Issuer
-
createIssuer
Returns a new instance ofIssuer
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofIssuer
- Returns:
- a new instance of
Issuer
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createIssuer
Returns a new instance ofIssuer
. The return object is immutable.- Parameters:
xml
- a XML string representation ofIssuer
- Returns:
- a new instance of
Issuer
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createKeyInfoConfirmationData
Returns a new instance ofKeyInfoConfirmationData
.- Returns:
- a new instance of
KeyInfoConfirmationData
-
createKeyInfoConfirmationData
public KeyInfoConfirmationData createKeyInfoConfirmationData(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createKeyInfoConfirmationData
public KeyInfoConfirmationData createKeyInfoConfirmationData(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createNameID
Returns a new instance ofNameID
.- Returns:
- a new instance of
NameID
-
createNameID
Returns a new instance ofNameID
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofNameID
- Returns:
- a new instance of
NameID
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createNameID
Returns a new instance ofNameID
. The return object is immutable.- Parameters:
xml
- a XML string representation ofNameID
- Returns:
- a new instance of
NameID
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createOneTimeUse
Returns a new instance ofOneTimeUse
.- Returns:
- a new instance of
OneTimeUse
-
createOneTimeUse
public OneTimeUse createOneTimeUse(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createOneTimeUse
Returns a new instance ofOneTimeUse
. The return object is immutable.- Parameters:
xml
- a XML string representation ofOneTimeUse
- Returns:
- a new instance of
OneTimeUse
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createProxyRestriction
Returns a new instance ofProxyRestriction
.- Returns:
- a new instance of
ProxyRestriction
-
createProxyRestriction
public ProxyRestriction createProxyRestriction(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createProxyRestriction
public ProxyRestriction createProxyRestriction(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createSubject
Returns a new instance ofSubject
.- Returns:
- a new instance of
Subject
-
createSubject
Returns a new instance ofSubject
. The return object is immutable.- Parameters:
elem
- a DOM Element representation ofSubject
- Returns:
- a new instance of
Subject
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createSubject
Returns a new instance ofSubject
. The return object is immutable.- Parameters:
xml
- a XML string representation ofSubject
- Returns:
- a new instance of
Subject
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createSubjectConfirmation
Returns a new instance ofSubjectConfirmation
.- Returns:
- a new instance of
SubjectConfirmation
-
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
createSubjectConfirmationData
Returns a new instance ofSubjectConfirmationData
.- Returns:
- a new instance of
SubjectConfirmationData
-
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData(Element elem) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the DOM Element
-
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData(String xml) throws com.sun.identity.saml2.common.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:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string
-
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
Returns a new instance ofAction
. The return object is immutable.- Parameters:
elem
- anElement
representingAction
.- Returns:
- a new instance of
Action
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createAction
Returns a new instance ofAction
. The return object is immutable.- Parameters:
xml
- an XML String representingAction
.- Returns:
- a new instance of
Action
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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
Returns a new instance ofAttribute
. The return object is immutable.- Parameters:
elem
- anElement
representation ofAttribute
.- Returns:
- a new instance of
Attribute
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createAttribute
Returns a new instance ofAttribute
. The return object is immutable.- Parameters:
xml
- an XML String representingAttribute
.- Returns:
- a new instance of
Attribute
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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 com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAttributeStatement
. The return object is immutable.- Parameters:
elem
- anElement
representation ofAttributeStatement
.- Returns:
- a new instance of
AttributeStatement
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createAttributeStatement
public AttributeStatement createAttributeStatement(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAttributeStatement
. The return object is immutable.- Parameters:
xml
- an XML String representingAttributeStatement
.- Returns:
- a new instance of
AttributeStatement
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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 com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAuthnContext
. The return object is immutable.- Parameters:
elem
- anElement
representation ofAuthnContext
.- Returns:
- a new instance of
AuthnContext
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createAuthnContext
public AuthnContext createAuthnContext(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAuthnContext
. The return object is immutable.- Parameters:
xml
- an XML String representingAuthnContext
.- Returns:
- a new instance of
AuthnContext
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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 com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAuthnStatement
. The return object is immutable.- Parameters:
elem
- anElement
representation ofAuthnStatement
.- Returns:
- a new instance of
AuthnStatement
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createAuthnStatement
public AuthnStatement createAuthnStatement(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAuthnStatement
. The return object is immutable.- Parameters:
xml
- an XML String representingAuthnStatement
.- Returns:
- a new instance of
AuthnStatement
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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 com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAuthzDecisionStatement
. The return object is immutable.- Parameters:
elem
- anElement
representation ofAuthzDecisionStatement
.- Returns:
- a new instance of
AuthzDecisionStatement
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createAuthzDecisionStatement
public AuthzDecisionStatement createAuthzDecisionStatement(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofAuthzDecisionStatement
. The return object is immutable.- Parameters:
xml
- an XML String representingAuthzDecisionStatement
.- Returns:
- a new instance of
AuthzDecisionStatement
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
createEncryptedAttribute
public EncryptedAttribute createEncryptedAttribute(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofEncryptedAttribute
. The return object is immutable.- Parameters:
elem
- anElement
representation ofEncryptedAttribute
.- Returns:
- a new instance of
EncryptedAttribute
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createEncryptedAttribute
public EncryptedAttribute createEncryptedAttribute(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofEncryptedAttribute
. The return object is immutable.- Parameters:
xml
- an XML String representingEncryptedAttribute
. .- Returns:
- a new instance of
EncryptedAttribute
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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
Returns a new instance ofEvidence
. The return object is immutable.- Parameters:
elem
- aElement
representation ofEvidence
.- Returns:
- a new instance of
Evidence
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createEvidence
Returns a new instance ofEvidence
. The return object is immutable.- Parameters:
xml
- an XML String representingEvidence
.- Returns:
- a new instance of
Evidence
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
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 com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofSubjectLocality
. The return object is immutable.- Parameters:
elem
- anElement
representingSubjectLocality
.- Returns:
- a new instance of
SubjectLocality
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createSubjectLocality
public SubjectLocality createSubjectLocality(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofSubjectLocality
. The return object is immutable.- Parameters:
xml
- an XML String representingSubjectLocality
.- Returns:
- a new instance of
SubjectLocality
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-