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 theAssertionIDRequestObject.createAssertionIDRequest(String value) Returns theAssertionIDRequestObject.createAssertionIDRequest(Element value) Returns theAssertionIDRequestObject.Returns theAttributeQueryObject.createAttributeQuery(String value) Returns theAttributeQueryObject.createAttributeQuery(Element value) Returns theAttributeQueryObject.Returns theAuthnQueryObject.createAuthnQuery(String value) Returns theAuthnQueryObject.createAuthnQuery(Element value) Returns theAuthnQueryObject.Returns theAuthnRequestObject.createAuthnRequest(String value) Returns theAuthnRequestObject.createAuthnRequest(Element value) Returns theAuthnRequestObject.Returns theExtensionsObject.createExtensions(String value) Returns theExtensionsObject.createExtensions(Element value) Returns theExtensionsObject.Returns theGetCompleteObject.createGetComplete(String value) Returns theGetCompleteObject.createGetComplete(Element value) Returns theGetCompleteObject.Returns theIDPEntryObject.createIDPEntry(String value) Returns theIDPEntryObject.createIDPEntry(Element value) Returns theIDPEntryObject.Returns theIDPListObject.createIDPList(String value) Returns theIDPListObject.createIDPList(Element value) Returns theIDPListObject.Returns theLogoutRequestObject.createLogoutRequest(String value) Returns theLogoutRequestObject.createLogoutRequest(Element value) Returns theLogoutRequestObject.Returns theLogoutResponseObject.createLogoutResponse(String value) Returns theLogoutResponseObject.createLogoutResponse(Element value) Returns theLogoutResponseObject.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 theNameIDMappingRequestObject.createNameIDMappingRequest(String value) Returns theNameIDMappingRequestObject.Returns theNameIDMappingRequestObject.Returns theNameIDMappingResponseObject.Returns theNameIDMappingResponseObject.Returns theNameIDMappingResponseObject.Returns theNameIDPolicyObject.createNameIDPolicy(String value) Returns theNameIDPolicyObject.createNameIDPolicy(Element value) Returns theNameIDPolicyObject.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 theRequesterIDObject.createRequesterID(String value) Returns theRequesterIDObject.createRequesterID(Element value) Returns theRequesterIDObject.Returns a new instance ofResponse.createResponse(String xml) Returns a new instance ofResponse.createResponse(Element elem) Returns a new instance ofResponse.Returns theScopingObject.createScoping(String value) Returns theScopingObject.createScoping(Element value) Returns theScopingObject.createSessionIndex(String value) Returns theSessionIndexObject.Returns theStatusObject.createStatus(String value) Returns theStatusObject.createStatus(Element value) Returns theStatusObject.Returns theStatusCodeObject.createStatusCode(String value) Returns theStatusCodeObject.createStatusCode(Element value) Returns theStatusCodeObject.Returns theStatusDetailObject.createStatusDetail(String value) Returns theStatusDetailObject.createStatusDetail(Element value) Returns theStatusDetailObject.createStatusMessage(String value) Returns theStatusMessageObject.static ProtocolFactoryReturns an instance of theProtocolFactoryObject.
-
Method Details
-
getInstance
Returns an instance of theProtocolFactoryObject.- Returns:
- an instance of the
ProtocolFactoryobject.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest() throws com.sun.identity.saml2.common.SAML2ExceptionReturns theAssertionIDRequestObject.- Returns:
- the
AssertionIDRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAssertionIDRequestcannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAssertionIDRequestObject.- Parameters:
value- the Document Element ofAssertionIDRequestobject.- Returns:
- the
AssertionIDRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAssertionIDRequestcannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAssertionIDRequestObject.- Parameters:
value-AssertionIDRequestXML String.- Returns:
- the
AssertionIDRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAssertionIDRequestcannot be created.
-
createAttributeQuery
Returns theAttributeQueryObject.- Returns:
- the
AttributeQueryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAttributeQuerycannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAttributeQueryObject.- Parameters:
value- the Document Element ofAttributeQueryobject.- Returns:
- the
AttributeQueryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAttributeQuerycannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAttributeQueryObject.- Parameters:
value-AttributeQueryXML String.- Returns:
- the
AttributeQueryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAttributeQuerycannot be created.
-
createAuthnQuery
Returns theAuthnQueryObject.- Returns:
- the
AuthnQueryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAuthnQuerycannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnQueryObject.- Parameters:
value- the Document Element ofAuthnQueryobject.- Returns:
- the
AuthnQueryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAuthnQuerycannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnQueryObject.- Parameters:
value-AuthnQueryXML String.- Returns:
- the
AuthnQueryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAuthnQuerycannot be created.
-
createAuthnRequest
Returns theAuthnRequestObject.- Returns:
- the
AuthnRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAuthnRequestcannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnRequestObject.- Parameters:
value- the Document Element ofAuthnRequestobject.- Returns:
- the
AuthnRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAuthnRequestcannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theAuthnRequestObject.- Parameters:
value-AuthnRequestXML String.- Returns:
- the
AuthnRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifAuthnRequestcannot be created.
-
createExtensions
Returns theExtensionsObject.- Returns:
- the
Extensionsobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifExtensionscannot be created.
-
createExtensions
public Extensions createExtensions(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theExtensionsObject.- Parameters:
value- the Document Element ofExtensionsobject.- Returns:
- instance of
Extensionsobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifExtensionscannot be created.
-
createExtensions
public Extensions createExtensions(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theExtensionsObject.- Parameters:
value- XML String Representation ofExtensionsobject.- Returns:
- instance of
Extensionsobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifExtensionscannot be created.
-
createGetComplete
Returns theGetCompleteObject.- Returns:
- instance of
GetCompleteobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifGetCompletecannot be created.
-
createGetComplete
public GetComplete createGetComplete(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theGetCompleteObject.- Parameters:
value- Document Element ofGetCompleteobject.- Returns:
- instance of
GetCompleteObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifGetCompletecannot be created.
-
createGetComplete
public GetComplete createGetComplete(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theGetCompleteObject.- Parameters:
value- XML String representation ofGetCompleteobject.- Returns:
- instance of
GetCompleteObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifGetCompletecannot be created.
-
createIDPEntry
Returns theIDPEntryObject.- Returns:
- instance of
IDPEntryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifIDPEntrycannot be created.
-
createIDPEntry
Returns theIDPEntryObject.- Parameters:
value- Document Element ofIDPEntryobject.- Returns:
- instance of
IDPEntryobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifIDPEntrycannot be created.
-
createIDPEntry
Returns theIDPEntryObject.- Parameters:
value- XML Representation of theIDPEntryobject.- Returns:
- instance of
IDPEntryObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifIDPEntrycannot be created.
-
createIDPList
Returns theIDPListObject.- Returns:
- instance of
IDPListObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifIDPListcannot be created.
-
createIDPList
Returns theIDPListObject.- Parameters:
value- Document Element ofIDPListObject.- Returns:
- instance of
IDPListObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifIDPListcannot be created.
-
createIDPList
Returns theIDPListObject.- Parameters:
value- XML String Representation ofIDPListObject.- Returns:
- instance of
IDPListObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifIDPListcannot be created.
-
createNameIDPolicy
Returns theNameIDPolicyObject.- Returns:
- instance of
NameIDPolicyObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDPolicycannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDPolicyObject.- Parameters:
value- Document Element ofNameIDPolicyObject.- Returns:
- instance of
NameIDPolicyObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDPolicycannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDPolicyObject.- Parameters:
value- XML String Representation ofNameIDPolicyobject.- Returns:
- instance of
NameIDPolicyobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDPolicycannot be created.
-
createRequesterID
Returns theRequesterIDObject.- Returns:
- instance of
RequesterIDObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifRequesterIDcannot be created.
-
createRequesterID
public RequesterID createRequesterID(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theRequesterIDObject.- Parameters:
value- Document Element ofRequesterIDObject.- Returns:
- instance of
RequesterIDObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifRequesterIDcannot be created.
-
createRequesterID
public RequesterID createRequesterID(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theRequesterIDObject.- Parameters:
value- XML String Representation ofRequesterIDobject.- Returns:
- instance of
RequesterIDObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifRequesterIDcannot be created.
-
createScoping
Returns theScopingObject.- Returns:
- instance of
ScopingObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifScopingcannot be created.
-
createScoping
Returns theScopingObject.- Parameters:
value- Document Element ofScopingObject.- Returns:
- instance of
ScopingObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifScopingcannot be created.
-
createScoping
Returns theScopingObject.- Parameters:
value- XML String Representation ofScopingObject.- Returns:
- instance of
ScopingObject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifScopingcannot be created.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext() throws com.sun.identity.saml2.common.SAML2ExceptionReturns a mutable requested authentication context object.- Returns:
- the
RequestedAuthnContextobject. - 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
ManageNameIDRequestobject.
-
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 representingManageNameIDRequestobject.- 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 representingManageNameIDRequestobject.- 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
ManageNameIDResponseobject.
-
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 representingManageNameIDResponseobject.- 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 representingManageNameIDResponseobject.- 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 representingNewIDobject.- 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 representingNewEncryptedIDobject.- 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 representingNewEncryptedIDobject.- Returns:
- an immutable requested authentication context object.
- Throws:
com.sun.identity.saml2.common.SAML2Exception- if it failed to instantiate the object.
-
createLogoutRequest
Returns theLogoutRequestObject.- Returns:
- the
LogoutRequestobject.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theLogoutRequestObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementobject representing theLogoutRequestobject.- Returns:
- the
LogoutRequestobject. - 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 theLogoutRequestObject. This object will be immutable.- Parameters:
value- theStringrepresenting theLogoutRequestobject.- Returns:
- the
LogoutRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createLogoutResponse
Returns theLogoutResponseObject.- Returns:
- the
LogoutResponseobject.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(Element value) throws com.sun.identity.saml2.common.SAML2Exception Returns theLogoutResponseObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theLogoutResponseobject.- Returns:
- the
LogoutResponseobject. - 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 theLogoutResponseObject. This object will be immutable.- Parameters:
value- theStringrepresenting theLogoutResponseobject.- Returns:
- the
LogoutResponseobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createStatus
Returns theStatusObject.- Returns:
- the
Statusobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createStatus
Returns theStatusObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theStatusobject.- Returns:
- the
Statusobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createStatus
Returns theStatusObject. This object will be immutable.- Parameters:
value- theStringrepresenting theStatusobject.- Returns:
- the
Statusobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createStatusCode
Returns theStatusCodeObject.- Returns:
- the
StatusCodeobject. - 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 theStatusCodeObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theStatusCodeobject.- Returns:
- the
StatusCodeobject. - 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 theStatusCodeObject. This object will be immutable.- Parameters:
value- theStringrepresenting theStatusCodeobject.- Returns:
- the
StatusCodeobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createStatusDetail
Returns theStatusDetailObject.- Returns:
- the
StatusDetailobject. - 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 theStatusDetailObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theStatusDetailobject.- Returns:
- the
StatusDetailobject. - 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 theStatusDetailObject. This object will be immutable.- Parameters:
value- theStringrepresenting theStatusDetailobject.- Returns:
- the
StatusDetailobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- if it fails to instantiate the object.
-
createStatusMessage
Returns theStatusMessageObject.- Parameters:
value- A StringStatusMessagevalue- Returns:
- the
StatusMessageobject.
-
createSessionIndex
Returns theSessionIndexObject.- Parameters:
value- A StringSessionIndexvalue- Returns:
- the
SessionIndexobject.
-
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- anElementrepresentation 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 Base64encoded 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- anElementrepresentation 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- anElementrepresentingArtifactResponse.- 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- anElementrepresentation 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 theNameIDMappingRequestObject.- Returns:
- the
NameIDMappingRequestobject.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingRequestObject.- Parameters:
elem- the Document Element ofNameIDMappingRequestobject.- Returns:
- the
NameIDMappingRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDMappingRequestcannot be created.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingRequestObject.- Parameters:
value-NameIDMappingRequestXML String.- Returns:
- the
NameIDMappingRequestobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDMappingRequestcannot be created.
-
createNameIDMappingResponse
Returns theNameIDMappingResponseObject.- Returns:
- the
NameIDMappingResponseobject.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(Element elem) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingResponseObject.- Parameters:
elem- the Document Element ofNameIDMappingResponseobject.- Returns:
- the
NameIDMappingResponseobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDMappingResponsecannot be created.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(String value) throws com.sun.identity.saml2.common.SAML2Exception Returns theNameIDMappingResponseObject.- Parameters:
value-NameIDMappingResponseXML String.- Returns:
- the
NameIDMappingResponseobject. - Throws:
com.sun.identity.saml2.common.SAML2Exception- ifNameIDMappingResponsecannot be created.
-