Package com.sun.identity.saml2.protocol
Class ProtocolFactory
java.lang.Object
com.sun.identity.saml2.protocol.ProtocolFactory
This is the factory class to obtain object instances for concrete elements in
the protocol schema. This factory class provides 3 methods for each element.
createElementName()
,
createElementName(String value)
,
createElementName(org.w3c.dom.Element value)
.-
Method Summary
Modifier and TypeMethodDescriptioncreateArtifact
(byte[] typecode, int endpointIndex, String sourceID, String messageHandle) Returns a new instance ofArtifact
.createArtifact
(String encodedArtifactValue) Returns a new instance ofArtifact
.createArtifact
(Element elem) Returns a new instance ofArtifact
.Returns a new instance ofArtifactResolve
.Returns a new instance ofArtifactResolve
.createArtifactResolve
(Element elem) Returns a new instance ofArtifactResolve
.Returns a new instance ofArtifactResponse
.Returns a new instance ofArtifactResponse
.Returns a new instance ofArtifactResponse
.Returns theAssertionIDRequest
Object.createAssertionIDRequest
(String value) Returns theAssertionIDRequest
Object.createAssertionIDRequest
(Element value) Returns theAssertionIDRequest
Object.Returns theAttributeQuery
Object.createAttributeQuery
(String value) Returns theAttributeQuery
Object.createAttributeQuery
(Element value) Returns theAttributeQuery
Object.Returns theAuthnQuery
Object.createAuthnQuery
(String value) Returns theAuthnQuery
Object.createAuthnQuery
(Element value) Returns theAuthnQuery
Object.Returns theAuthnRequest
Object.createAuthnRequest
(String value) Returns theAuthnRequest
Object.createAuthnRequest
(Element value) Returns theAuthnRequest
Object.Returns theExtensions
Object.createExtensions
(String value) Returns theExtensions
Object.createExtensions
(Element value) Returns theExtensions
Object.Returns theGetComplete
Object.createGetComplete
(String value) Returns theGetComplete
Object.createGetComplete
(Element value) Returns theGetComplete
Object.Returns theIDPEntry
Object.createIDPEntry
(String value) Returns theIDPEntry
Object.createIDPEntry
(Element value) Returns theIDPEntry
Object.Returns theIDPList
Object.createIDPList
(String value) Returns theIDPList
Object.createIDPList
(Element value) Returns theIDPList
Object.Returns theLogoutRequest
Object.createLogoutRequest
(String value) Returns theLogoutRequest
Object.createLogoutRequest
(Element value) Returns theLogoutRequest
Object.Returns theLogoutResponse
Object.createLogoutResponse
(String value) Returns theLogoutResponse
Object.createLogoutResponse
(Element value) Returns theLogoutResponse
Object.Returns a mutable manage name identifier request object.createManageNameIDRequest
(String value) Returns an immutable manage name identifier request object.createManageNameIDRequest
(Element value) Returns an immutable manage name identifier request object.Returns a mutable manage name identifier response object.createManageNameIDResponse
(String value) Returns an immutable manage name identifier response object.Returns an immutable manage name identifier response object.Returns theNameIDMappingRequest
Object.createNameIDMappingRequest
(String value) Returns theNameIDMappingRequest
Object.Returns theNameIDMappingRequest
Object.Returns theNameIDMappingResponse
Object.Returns theNameIDMappingResponse
Object.Returns theNameIDMappingResponse
Object.Returns theNameIDPolicy
Object.createNameIDPolicy
(String value) Returns theNameIDPolicy
Object.createNameIDPolicy
(Element value) Returns theNameIDPolicy
Object.createNewEncryptedID
(String value) Returns an immutable new encrypted identifier object.createNewEncryptedID
(Element value) Returns an immutable new encrypted identifier object.createNewID
(String value) Returns an new identifier object.createNewID
(Element value) Returns an new identifier object.Returns a mutable requested authentication context object.Returns an immutable requested authentication context object.Returns an immutable requested authentication context object.Returns theRequesterID
Object.createRequesterID
(String value) Returns theRequesterID
Object.createRequesterID
(Element value) Returns theRequesterID
Object.Returns a new instance ofResponse
.createResponse
(String xml) Returns a new instance ofResponse
.createResponse
(Element elem) Returns a new instance ofResponse
.Returns theScoping
Object.createScoping
(String value) Returns theScoping
Object.createScoping
(Element value) Returns theScoping
Object.createSessionIndex
(String value) Returns theSessionIndex
Object.Returns theStatus
Object.createStatus
(String value) Returns theStatus
Object.createStatus
(Element value) Returns theStatus
Object.Returns theStatusCode
Object.createStatusCode
(String value) Returns theStatusCode
Object.createStatusCode
(Element value) Returns theStatusCode
Object.Returns theStatusDetail
Object.createStatusDetail
(String value) Returns theStatusDetail
Object.createStatusDetail
(Element value) Returns theStatusDetail
Object.createStatusMessage
(String value) Returns theStatusMessage
Object.static ProtocolFactory
Returns an instance of theProtocolFactory
Object.
-
Method Details
-
getInstance
Returns an instance of theProtocolFactory
Object.- Returns:
- an instance of the
ProtocolFactory
object.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest() throws com.sun.identity.saml2.common.SAML2ExceptionReturns theAssertionIDRequest
Object.- Returns:
- the
AssertionIDRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAssertionIDRequest
cannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAssertionIDRequest
Object.- Parameters:
value
- the Document Element ofAssertionIDRequest
object.- Returns:
- the
AssertionIDRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAssertionIDRequest
cannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAssertionIDRequest
Object.- Parameters:
value
-AssertionIDRequest
XML String.- Returns:
- the
AssertionIDRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAssertionIDRequest
cannot be created.
-
createAttributeQuery
Returns theAttributeQuery
Object.- Returns:
- the
AttributeQuery
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAttributeQuery
cannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAttributeQuery
Object.- Parameters:
value
- the Document Element ofAttributeQuery
object.- Returns:
- the
AttributeQuery
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAttributeQuery
cannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAttributeQuery
Object.- Parameters:
value
-AttributeQuery
XML String.- Returns:
- the
AttributeQuery
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAttributeQuery
cannot be created.
-
createAuthnQuery
Returns theAuthnQuery
Object.- Returns:
- the
AuthnQuery
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAuthnQuery
cannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnQuery
Object.- Parameters:
value
- the Document Element ofAuthnQuery
object.- Returns:
- the
AuthnQuery
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAuthnQuery
cannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnQuery
Object.- Parameters:
value
-AuthnQuery
XML String.- Returns:
- the
AuthnQuery
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAuthnQuery
cannot be created.
-
createAuthnRequest
Returns theAuthnRequest
Object.- Returns:
- the
AuthnRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAuthnRequest
cannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnRequest
Object.- Parameters:
value
- the Document Element ofAuthnRequest
object.- Returns:
- the
AuthnRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAuthnRequest
cannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnRequest
Object.- Parameters:
value
-AuthnRequest
XML String.- Returns:
- the
AuthnRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifAuthnRequest
cannot be created.
-
createExtensions
Returns theExtensions
Object.- Returns:
- the
Extensions
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifExtensions
cannot be created.
-
createExtensions
public Extensions createExtensions(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theExtensions
Object.- Parameters:
value
- the Document Element ofExtensions
object.- Returns:
- instance of
Extensions
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifExtensions
cannot be created.
-
createExtensions
public Extensions createExtensions(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theExtensions
Object.- Parameters:
value
- XML String Representation ofExtensions
object.- Returns:
- instance of
Extensions
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifExtensions
cannot be created.
-
createGetComplete
Returns theGetComplete
Object.- Returns:
- instance of
GetComplete
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifGetComplete
cannot be created.
-
createGetComplete
public GetComplete createGetComplete(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theGetComplete
Object.- Parameters:
value
- Document Element ofGetComplete
object.- Returns:
- instance of
GetComplete
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifGetComplete
cannot be created.
-
createGetComplete
public GetComplete createGetComplete(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theGetComplete
Object.- Parameters:
value
- XML String representation ofGetComplete
object.- Returns:
- instance of
GetComplete
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifGetComplete
cannot be created.
-
createIDPEntry
Returns theIDPEntry
Object.- Returns:
- instance of
IDPEntry
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifIDPEntry
cannot be created.
-
createIDPEntry
Returns theIDPEntry
Object.- Parameters:
value
- Document Element ofIDPEntry
object.- Returns:
- instance of
IDPEntry
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifIDPEntry
cannot be created.
-
createIDPEntry
Returns theIDPEntry
Object.- Parameters:
value
- XML Representation of theIDPEntry
object.- Returns:
- instance of
IDPEntry
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifIDPEntry
cannot be created.
-
createIDPList
Returns theIDPList
Object.- Returns:
- instance of
IDPList
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifIDPList
cannot be created.
-
createIDPList
Returns theIDPList
Object.- Parameters:
value
- Document Element ofIDPList
Object.- Returns:
- instance of
IDPList
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifIDPList
cannot be created.
-
createIDPList
Returns theIDPList
Object.- Parameters:
value
- XML String Representation ofIDPList
Object.- Returns:
- instance of
IDPList
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifIDPList
cannot be created.
-
createNameIDPolicy
Returns theNameIDPolicy
Object.- Returns:
- instance of
NameIDPolicy
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDPolicy
cannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDPolicy
Object.- Parameters:
value
- Document Element ofNameIDPolicy
Object.- Returns:
- instance of
NameIDPolicy
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDPolicy
cannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDPolicy
Object.- Parameters:
value
- XML String Representation ofNameIDPolicy
object.- Returns:
- instance of
NameIDPolicy
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDPolicy
cannot be created.
-
createRequesterID
Returns theRequesterID
Object.- Returns:
- instance of
RequesterID
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifRequesterID
cannot be created.
-
createRequesterID
public RequesterID createRequesterID(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theRequesterID
Object.- Parameters:
value
- Document Element ofRequesterID
Object.- Returns:
- instance of
RequesterID
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifRequesterID
cannot be created.
-
createRequesterID
public RequesterID createRequesterID(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theRequesterID
Object.- Parameters:
value
- XML String Representation ofRequesterID
object.- Returns:
- instance of
RequesterID
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifRequesterID
cannot be created.
-
createScoping
Returns theScoping
Object.- Returns:
- instance of
Scoping
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifScoping
cannot be created.
-
createScoping
Returns theScoping
Object.- Parameters:
value
- Document Element ofScoping
Object.- Returns:
- instance of
Scoping
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifScoping
cannot be created.
-
createScoping
Returns theScoping
Object.- Parameters:
value
- XML String Representation ofScoping
Object.- Returns:
- instance of
Scoping
Object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifScoping
cannot be created.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext() throws com.sun.identity.saml2.common.SAML2ExceptionReturns a mutable requested authentication context object.- Returns:
- the
RequestedAuthnContext
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable requested authentication context object.- Parameters:
value
- DOM element representing requested authentication context object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable requested authentication context object.- Parameters:
value
- XML string representing requested authentication context object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createManageNameIDRequest
Returns a mutable manage name identifier request object.- Returns:
- the
ManageNameIDRequest
object.
-
createManageNameIDRequest
public ManageNameIDRequest createManageNameIDRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable manage name identifier request object.- Parameters:
value
- DOM element representingManageNameIDRequest
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createManageNameIDRequest
public ManageNameIDRequest createManageNameIDRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable manage name identifier request object.- Parameters:
value
- XML string representingManageNameIDRequest
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createManageNameIDResponse
Returns a mutable manage name identifier response object.- Returns:
- the
ManageNameIDResponse
object.
-
createManageNameIDResponse
public ManageNameIDResponse createManageNameIDResponse(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable manage name identifier response object.- Parameters:
value
- DOM element representingManageNameIDResponse
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createManageNameIDResponse
public ManageNameIDResponse createManageNameIDResponse(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable manage name identifier response object.- Parameters:
value
- XML String representingManageNameIDResponse
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createNewID
Returns an new identifier object.- Parameters:
value
- DOM element representingNewID
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createNewID
Returns an new identifier object.- Parameters:
value
- of theNewID
.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createNewEncryptedID
public NewEncryptedID createNewEncryptedID(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable new encrypted identifier object.- Parameters:
value
- DOM element representingNewEncryptedID
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createNewEncryptedID
public NewEncryptedID createNewEncryptedID(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns an immutable new encrypted identifier object.- Parameters:
value
- XML String representingNewEncryptedID
object.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it failed to instantiate the object.
-
createLogoutRequest
Returns theLogoutRequest
Object.- Returns:
- the
LogoutRequest
object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theLogoutRequest
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
object representing theLogoutRequest
object.- Returns:
- the
LogoutRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theLogoutRequest
Object. This object will be immutable.- Parameters:
value
- theString
representing theLogoutRequest
object.- Returns:
- the
LogoutRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createLogoutResponse
Returns theLogoutResponse
Object.- Returns:
- the
LogoutResponse
object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theLogoutResponse
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theLogoutResponse
object.- Returns:
- the
LogoutResponse
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theLogoutResponse
Object. This object will be immutable.- Parameters:
value
- theString
representing theLogoutResponse
object.- Returns:
- the
LogoutResponse
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatus
Returns theStatus
Object.- Returns:
- the
Status
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatus
Returns theStatus
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theStatus
object.- Returns:
- the
Status
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatus
Returns theStatus
Object. This object will be immutable.- Parameters:
value
- theString
representing theStatus
object.- Returns:
- the
Status
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusCode
Returns theStatusCode
Object.- Returns:
- the
StatusCode
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theStatusCode
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theStatusCode
object.- Returns:
- the
StatusCode
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theStatusCode
Object. This object will be immutable.- Parameters:
value
- theString
representing theStatusCode
object.- Returns:
- the
StatusCode
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusDetail
Returns theStatusDetail
Object.- Returns:
- the
StatusDetail
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theStatusDetail
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theStatusDetail
object.- Returns:
- the
StatusDetail
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theStatusDetail
Object. This object will be immutable.- Parameters:
value
- theString
representing theStatusDetail
object.- Returns:
- the
StatusDetail
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createStatusMessage
Returns theStatusMessage
Object.- Parameters:
value
- A StringStatusMessage
value- Returns:
- the
StatusMessage
object.
-
createSessionIndex
Returns theSessionIndex
Object.- Parameters:
value
- A StringSessionIndex
value- Returns:
- the
SessionIndex
object.
-
createArtifact
public Artifact createArtifact(byte[] typecode, int endpointIndex, String sourceID, String messageHandle) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofArtifact
.- Parameters:
typecode
- two byte sequence representingTypeCode
.endpointIndex
- integer value representingEndpointIndex
.sourceID
- String format of 20-byte sequence. Usually obtained from taking the SHA-1 hash of the identification URL (called provider ID).messageHandle
- String format of 20-byte sequence identifying a message. This value is constructed from a cryptographically strong random or pseudorandom number sequence.- Returns:
- a new instance of
Artifact
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it fails to instantiate the object.
-
createArtifact
Returns a new instance ofArtifact
. The return object is immutable.- Parameters:
elem
- anElement
representation ofArtifact
.- Returns:
- a new instance of
Artifact
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createArtifact
public Artifact createArtifact(String encodedArtifactValue) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofArtifact
. The return object is immutable.- Parameters:
encodedArtifactValue
-Artifact Base64
encoded String.- Returns:
- a new instance of
Artifact
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
createArtifactResolve
Returns a new instance ofArtifactResolve
. Caller may need to call setters of the class to populate the object.- Returns:
- a new instance of
ArtifactResolve
.
-
createArtifactResolve
public ArtifactResolve createArtifactResolve(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofArtifactResolve
. The return object is immutable.- Parameters:
elem
- anElement
representation ofArtifactResolve
.- Returns:
- a new instance of
ArtifactResolve
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createArtifactResolve
public ArtifactResolve createArtifactResolve(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofArtifactResolve
. The return object is immutable.- Parameters:
xml
- a XML String representation ofArtifactResolve
.- Returns:
- a new instance of
ArtifactResolve
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
createArtifactResponse
Returns a new instance ofArtifactResponse
. Caller may need to call setters of the class to populate the object.- Returns:
- a new instance of
ArtifactResponse
.
-
createArtifactResponse
public ArtifactResponse createArtifactResponse(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofArtifactResponse
. The return object is immutable.- Parameters:
elem
- anElement
representingArtifactResponse
.- Returns:
- a new instance of
ArtifactResponse
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createArtifactResponse
public ArtifactResponse createArtifactResponse(String xml) throws com.sun.identity.saml2.common.SAML2Exception Returns a new instance ofArtifactResponse
. The return object is immutable.- Parameters:
xml
- a XML String representation ofArtifactResponse
.- Returns:
- a new instance of
ArtifactResponse
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
createResponse
Returns a new instance ofResponse
. Caller may need to call setters of the class to populate the object.- Returns:
- a new instance of
Response
.
-
createResponse
Returns a new instance ofResponse
. The return object is immutable.- Parameters:
elem
- anElement
representation ofResponse
.- Returns:
- a new instance of
Response
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing theElement
.
-
createResponse
Returns a new instance ofResponse
. The return object is immutable.- Parameters:
xml
- a XML String representation ofResponse
.- Returns:
- a new instance of
Response
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs while processing the XML string.
-
createNameIDMappingRequest
Returns theNameIDMappingRequest
Object.- Returns:
- the
NameIDMappingRequest
object.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingRequest
Object.- Parameters:
elem
- the Document Element ofNameIDMappingRequest
object.- Returns:
- the
NameIDMappingRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDMappingRequest
cannot be created.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingRequest
Object.- Parameters:
value
-NameIDMappingRequest
XML String.- Returns:
- the
NameIDMappingRequest
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDMappingRequest
cannot be created.
-
createNameIDMappingResponse
Returns theNameIDMappingResponse
Object.- Returns:
- the
NameIDMappingResponse
object.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingResponse
Object.- Parameters:
elem
- the Document Element ofNameIDMappingResponse
object.- Returns:
- the
NameIDMappingResponse
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDMappingResponse
cannot be created.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingResponse
Object.- Parameters:
value
-NameIDMappingResponse
XML String.- Returns:
- the
NameIDMappingResponse
object. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- ifNameIDMappingResponse
cannot be created.
-