Package com.sun.identity.saml2.protocol
Class ProtocolFactory
- java.lang.Object
-
- com.sun.identity.saml2.protocol.ProtocolFactory
-
public class ProtocolFactory extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactcreateArtifact(byte[] typecode, int endpointIndex, String sourceID, String messageHandle)Returns a new instance ofArtifact.ArtifactcreateArtifact(String encodedArtifactValue)Returns a new instance ofArtifact.ArtifactcreateArtifact(Element elem)Returns a new instance ofArtifact.ArtifactResolvecreateArtifactResolve()Returns a new instance ofArtifactResolve.ArtifactResolvecreateArtifactResolve(String xml)Returns a new instance ofArtifactResolve.ArtifactResolvecreateArtifactResolve(Element elem)Returns a new instance ofArtifactResolve.ArtifactResponsecreateArtifactResponse()Returns a new instance ofArtifactResponse.ArtifactResponsecreateArtifactResponse(String xml)Returns a new instance ofArtifactResponse.ArtifactResponsecreateArtifactResponse(Element elem)Returns a new instance ofArtifactResponse.AssertionIDRequestcreateAssertionIDRequest()Returns theAssertionIDRequestObject.AssertionIDRequestcreateAssertionIDRequest(String value)Returns theAssertionIDRequestObject.AssertionIDRequestcreateAssertionIDRequest(Element value)Returns theAssertionIDRequestObject.AttributeQuerycreateAttributeQuery()Returns theAttributeQueryObject.AttributeQuerycreateAttributeQuery(String value)Returns theAttributeQueryObject.AttributeQuerycreateAttributeQuery(Element value)Returns theAttributeQueryObject.AuthnQuerycreateAuthnQuery()Returns theAuthnQueryObject.AuthnQuerycreateAuthnQuery(String value)Returns theAuthnQueryObject.AuthnQuerycreateAuthnQuery(Element value)Returns theAuthnQueryObject.AuthnRequestcreateAuthnRequest()Returns theAuthnRequestObject.AuthnRequestcreateAuthnRequest(String value)Returns theAuthnRequestObject.AuthnRequestcreateAuthnRequest(Element value)Returns theAuthnRequestObject.ExtensionscreateExtensions()Returns theExtensionsObject.ExtensionscreateExtensions(String value)Returns theExtensionsObject.ExtensionscreateExtensions(Element value)Returns theExtensionsObject.GetCompletecreateGetComplete()Returns theGetCompleteObject.GetCompletecreateGetComplete(String value)Returns theGetCompleteObject.GetCompletecreateGetComplete(Element value)Returns theGetCompleteObject.IDPEntrycreateIDPEntry()Returns theIDPEntryObject.IDPEntrycreateIDPEntry(String value)Returns theIDPEntryObject.IDPEntrycreateIDPEntry(Element value)Returns theIDPEntryObject.IDPListcreateIDPList()Returns theIDPListObject.IDPListcreateIDPList(String value)Returns theIDPListObject.IDPListcreateIDPList(Element value)Returns theIDPListObject.LogoutRequestcreateLogoutRequest()Returns theLogoutRequestObject.LogoutRequestcreateLogoutRequest(String value)Returns theLogoutRequestObject.LogoutRequestcreateLogoutRequest(Element value)Returns theLogoutRequestObject.LogoutResponsecreateLogoutResponse()Returns theLogoutResponseObject.LogoutResponsecreateLogoutResponse(String value)Returns theLogoutResponseObject.LogoutResponsecreateLogoutResponse(Element value)Returns theLogoutResponseObject.ManageNameIDRequestcreateManageNameIDRequest()Returns a mutable manage name identifier request object.ManageNameIDRequestcreateManageNameIDRequest(String value)Returns an immutable manage name identifier request object.ManageNameIDRequestcreateManageNameIDRequest(Element value)Returns an immutable manage name identifier request object.ManageNameIDResponsecreateManageNameIDResponse()Returns a mutable manage name identifier response object.ManageNameIDResponsecreateManageNameIDResponse(String value)Returns an immutable manage name identifier response object.ManageNameIDResponsecreateManageNameIDResponse(Element value)Returns an immutable manage name identifier response object.NameIDMappingRequestcreateNameIDMappingRequest()Returns theNameIDMappingRequestObject.NameIDMappingRequestcreateNameIDMappingRequest(String value)Returns theNameIDMappingRequestObject.NameIDMappingRequestcreateNameIDMappingRequest(Element elem)Returns theNameIDMappingRequestObject.NameIDMappingResponsecreateNameIDMappingResponse()Returns theNameIDMappingResponseObject.NameIDMappingResponsecreateNameIDMappingResponse(String value)Returns theNameIDMappingResponseObject.NameIDMappingResponsecreateNameIDMappingResponse(Element elem)Returns theNameIDMappingResponseObject.NameIDPolicycreateNameIDPolicy()Returns theNameIDPolicyObject.NameIDPolicycreateNameIDPolicy(String value)Returns theNameIDPolicyObject.NameIDPolicycreateNameIDPolicy(Element value)Returns theNameIDPolicyObject.NewEncryptedIDcreateNewEncryptedID(String value)Returns an immutable new encrypted identifier object.NewEncryptedIDcreateNewEncryptedID(Element value)Returns an immutable new encrypted identifier object.NewIDcreateNewID(String value)Returns an new identifier object.NewIDcreateNewID(Element value)Returns an new identifier object.RequestedAuthnContextcreateRequestedAuthnContext()Returns a mutable requested authentication context object.RequestedAuthnContextcreateRequestedAuthnContext(String value)Returns an immutable requested authentication context object.RequestedAuthnContextcreateRequestedAuthnContext(Element value)Returns an immutable requested authentication context object.RequesterIDcreateRequesterID()Returns theRequesterIDObject.RequesterIDcreateRequesterID(String value)Returns theRequesterIDObject.RequesterIDcreateRequesterID(Element value)Returns theRequesterIDObject.ResponsecreateResponse()Returns a new instance ofResponse.ResponsecreateResponse(String xml)Returns a new instance ofResponse.ResponsecreateResponse(Element elem)Returns a new instance ofResponse.ScopingcreateScoping()Returns theScopingObject.ScopingcreateScoping(String value)Returns theScopingObject.ScopingcreateScoping(Element value)Returns theScopingObject.SessionIndexcreateSessionIndex(String value)Returns theSessionIndexObject.StatuscreateStatus()Returns theStatusObject.StatuscreateStatus(String value)Returns theStatusObject.StatuscreateStatus(Element value)Returns theStatusObject.StatusCodecreateStatusCode()Returns theStatusCodeObject.StatusCodecreateStatusCode(String value)Returns theStatusCodeObject.StatusCodecreateStatusCode(Element value)Returns theStatusCodeObject.StatusDetailcreateStatusDetail()Returns theStatusDetailObject.StatusDetailcreateStatusDetail(String value)Returns theStatusDetailObject.StatusDetailcreateStatusDetail(Element value)Returns theStatusDetailObject.StatusMessagecreateStatusMessage(String value)Returns theStatusMessageObject.static ProtocolFactorygetInstance()Returns an instance of theProtocolFactoryObject.
-
-
-
Method Detail
-
getInstance
public static ProtocolFactory getInstance()
Returns an instance of theProtocolFactoryObject.- Returns:
- an instance of the
ProtocolFactoryobject.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest() throws SAML2Exception
Returns theAssertionIDRequestObject.- Returns:
- the
AssertionIDRequestobject. - Throws:
SAML2Exception- ifAssertionIDRequestcannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(Element value) throws SAML2Exception
Returns theAssertionIDRequestObject.- Parameters:
value- the Document Element ofAssertionIDRequestobject.- Returns:
- the
AssertionIDRequestobject. - Throws:
SAML2Exception- ifAssertionIDRequestcannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(String value) throws SAML2Exception
Returns theAssertionIDRequestObject.- Parameters:
value-AssertionIDRequestXML String.- Returns:
- the
AssertionIDRequestobject. - Throws:
SAML2Exception- ifAssertionIDRequestcannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery() throws SAML2Exception
Returns theAttributeQueryObject.- Returns:
- the
AttributeQueryobject. - Throws:
SAML2Exception- ifAttributeQuerycannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(Element value) throws SAML2Exception
Returns theAttributeQueryObject.- Parameters:
value- the Document Element ofAttributeQueryobject.- Returns:
- the
AttributeQueryobject. - Throws:
SAML2Exception- ifAttributeQuerycannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(String value) throws SAML2Exception
Returns theAttributeQueryObject.- Parameters:
value-AttributeQueryXML String.- Returns:
- the
AttributeQueryobject. - Throws:
SAML2Exception- ifAttributeQuerycannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery() throws SAML2Exception
Returns theAuthnQueryObject.- Returns:
- the
AuthnQueryobject. - Throws:
SAML2Exception- ifAuthnQuerycannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(Element value) throws SAML2Exception
Returns theAuthnQueryObject.- Parameters:
value- the Document Element ofAuthnQueryobject.- Returns:
- the
AuthnQueryobject. - Throws:
SAML2Exception- ifAuthnQuerycannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(String value) throws SAML2Exception
Returns theAuthnQueryObject.- Parameters:
value-AuthnQueryXML String.- Returns:
- the
AuthnQueryobject. - Throws:
SAML2Exception- ifAuthnQuerycannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest() throws SAML2Exception
Returns theAuthnRequestObject.- Returns:
- the
AuthnRequestobject. - Throws:
SAML2Exception- ifAuthnRequestcannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(Element value) throws SAML2Exception
Returns theAuthnRequestObject.- Parameters:
value- the Document Element ofAuthnRequestobject.- Returns:
- the
AuthnRequestobject. - Throws:
SAML2Exception- ifAuthnRequestcannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(String value) throws SAML2Exception
Returns theAuthnRequestObject.- Parameters:
value-AuthnRequestXML String.- Returns:
- the
AuthnRequestobject. - Throws:
SAML2Exception- ifAuthnRequestcannot be created.
-
createExtensions
public Extensions createExtensions() throws SAML2Exception
Returns theExtensionsObject.- Returns:
- the
Extensionsobject. - Throws:
SAML2Exception- ifExtensionscannot be created.
-
createExtensions
public Extensions createExtensions(Element value) throws SAML2Exception
Returns theExtensionsObject.- Parameters:
value- the Document Element ofExtensionsobject.- Returns:
- instance of
Extensionsobject. - Throws:
SAML2Exception- ifExtensionscannot be created.
-
createExtensions
public Extensions createExtensions(String value) throws SAML2Exception
Returns theExtensionsObject.- Parameters:
value- XML String Representation ofExtensionsobject.- Returns:
- instance of
Extensionsobject. - Throws:
SAML2Exception- ifExtensionscannot be created.
-
createGetComplete
public GetComplete createGetComplete() throws SAML2Exception
Returns theGetCompleteObject.- Returns:
- instance of
GetCompleteobject. - Throws:
SAML2Exception- ifGetCompletecannot be created.
-
createGetComplete
public GetComplete createGetComplete(Element value) throws SAML2Exception
Returns theGetCompleteObject.- Parameters:
value- Document Element ofGetCompleteobject.- Returns:
- instance of
GetCompleteObject. - Throws:
SAML2Exception- ifGetCompletecannot be created.
-
createGetComplete
public GetComplete createGetComplete(String value) throws SAML2Exception
Returns theGetCompleteObject.- Parameters:
value- XML String representation ofGetCompleteobject.- Returns:
- instance of
GetCompleteObject. - Throws:
SAML2Exception- ifGetCompletecannot be created.
-
createIDPEntry
public IDPEntry createIDPEntry() throws SAML2Exception
Returns theIDPEntryObject.- Returns:
- instance of
IDPEntryobject. - Throws:
SAML2Exception- ifIDPEntrycannot be created.
-
createIDPEntry
public IDPEntry createIDPEntry(Element value) throws SAML2Exception
Returns theIDPEntryObject.- Parameters:
value- Document Element ofIDPEntryobject.- Returns:
- instance of
IDPEntryobject. - Throws:
SAML2Exception- ifIDPEntrycannot be created.
-
createIDPEntry
public IDPEntry createIDPEntry(String value) throws SAML2Exception
Returns theIDPEntryObject.- Parameters:
value- XML Representation of theIDPEntryobject.- Returns:
- instance of
IDPEntryObject. - Throws:
SAML2Exception- ifIDPEntrycannot be created.
-
createIDPList
public IDPList createIDPList() throws SAML2Exception
Returns theIDPListObject.- Returns:
- instance of
IDPListObject. - Throws:
SAML2Exception- ifIDPListcannot be created.
-
createIDPList
public IDPList createIDPList(Element value) throws SAML2Exception
Returns theIDPListObject.- Parameters:
value- Document Element ofIDPListObject.- Returns:
- instance of
IDPListObject. - Throws:
SAML2Exception- ifIDPListcannot be created.
-
createIDPList
public IDPList createIDPList(String value) throws SAML2Exception
Returns theIDPListObject.- Parameters:
value- XML String Representation ofIDPListObject.- Returns:
- instance of
IDPListObject. - Throws:
SAML2Exception- ifIDPListcannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy() throws SAML2Exception
Returns theNameIDPolicyObject.- Returns:
- instance of
NameIDPolicyObject. - Throws:
SAML2Exception- ifNameIDPolicycannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(Element value) throws SAML2Exception
Returns theNameIDPolicyObject.- Parameters:
value- Document Element ofNameIDPolicyObject.- Returns:
- instance of
NameIDPolicyObject. - Throws:
SAML2Exception- ifNameIDPolicycannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(String value) throws SAML2Exception
Returns theNameIDPolicyObject.- Parameters:
value- XML String Representation ofNameIDPolicyobject.- Returns:
- instance of
NameIDPolicyobject. - Throws:
SAML2Exception- ifNameIDPolicycannot be created.
-
createRequesterID
public RequesterID createRequesterID() throws SAML2Exception
Returns theRequesterIDObject.- Returns:
- instance of
RequesterIDObject. - Throws:
SAML2Exception- ifRequesterIDcannot be created.
-
createRequesterID
public RequesterID createRequesterID(Element value) throws SAML2Exception
Returns theRequesterIDObject.- Parameters:
value- Document Element ofRequesterIDObject.- Returns:
- instance of
RequesterIDObject. - Throws:
SAML2Exception- ifRequesterIDcannot be created.
-
createRequesterID
public RequesterID createRequesterID(String value) throws SAML2Exception
Returns theRequesterIDObject.- Parameters:
value- XML String Representation ofRequesterIDobject.- Returns:
- instance of
RequesterIDObject. - Throws:
SAML2Exception- ifRequesterIDcannot be created.
-
createScoping
public Scoping createScoping() throws SAML2Exception
Returns theScopingObject.- Returns:
- instance of
ScopingObject. - Throws:
SAML2Exception- ifScopingcannot be created.
-
createScoping
public Scoping createScoping(Element value) throws SAML2Exception
Returns theScopingObject.- Parameters:
value- Document Element ofScopingObject.- Returns:
- instance of
ScopingObject. - Throws:
SAML2Exception- ifScopingcannot be created.
-
createScoping
public Scoping createScoping(String value) throws SAML2Exception
Returns theScopingObject.- Parameters:
value- XML String Representation ofScopingObject.- Returns:
- instance of
ScopingObject. - Throws:
SAML2Exception- ifScopingcannot be created.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext() throws SAML2Exception
Returns a mutable requested authentication context object.- Returns:
- the
RequestedAuthnContextobject. - Throws:
SAML2Exception- if it failed to instantiate the object.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext(Element value) throws 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:
SAML2Exception- if it failed to instantiate the object.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext(String value) throws 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:
SAML2Exception- if it failed to instantiate the object.
-
createManageNameIDRequest
public ManageNameIDRequest createManageNameIDRequest()
Returns a mutable manage name identifier request object.- Returns:
- the
ManageNameIDRequestobject.
-
createManageNameIDRequest
public ManageNameIDRequest createManageNameIDRequest(Element value) throws SAML2Exception
Returns an immutable manage name identifier request object.- Parameters:
value- DOM element representingManageNameIDRequestobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createManageNameIDRequest
public ManageNameIDRequest createManageNameIDRequest(String value) throws SAML2Exception
Returns an immutable manage name identifier request object.- Parameters:
value- XML string representingManageNameIDRequestobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createManageNameIDResponse
public ManageNameIDResponse createManageNameIDResponse()
Returns a mutable manage name identifier response object.- Returns:
- the
ManageNameIDResponseobject.
-
createManageNameIDResponse
public ManageNameIDResponse createManageNameIDResponse(Element value) throws SAML2Exception
Returns an immutable manage name identifier response object.- Parameters:
value- DOM element representingManageNameIDResponseobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createManageNameIDResponse
public ManageNameIDResponse createManageNameIDResponse(String value) throws SAML2Exception
Returns an immutable manage name identifier response object.- Parameters:
value- XML String representingManageNameIDResponseobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createNewID
public NewID createNewID(Element value) throws SAML2Exception
Returns an new identifier object.- Parameters:
value- DOM element representingNewIDobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createNewID
public NewID createNewID(String value) throws SAML2Exception
Returns an new identifier object.- Parameters:
value- of theNewID.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createNewEncryptedID
public NewEncryptedID createNewEncryptedID(Element value) throws SAML2Exception
Returns an immutable new encrypted identifier object.- Parameters:
value- DOM element representingNewEncryptedIDobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createNewEncryptedID
public NewEncryptedID createNewEncryptedID(String value) throws SAML2Exception
Returns an immutable new encrypted identifier object.- Parameters:
value- XML String representingNewEncryptedIDobject.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception- if it failed to instantiate the object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest()
Returns theLogoutRequestObject.- Returns:
- the
LogoutRequestobject.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(Element value) throws SAML2Exception
Returns theLogoutRequestObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementobject representing theLogoutRequestobject.- Returns:
- the
LogoutRequestobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(String value) throws SAML2Exception
Returns theLogoutRequestObject. This object will be immutable.- Parameters:
value- theStringrepresenting theLogoutRequestobject.- Returns:
- the
LogoutRequestobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse()
Returns theLogoutResponseObject.- Returns:
- the
LogoutResponseobject.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(Element value) throws SAML2Exception
Returns theLogoutResponseObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theLogoutResponseobject.- Returns:
- the
LogoutResponseobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(String value) throws SAML2Exception
Returns theLogoutResponseObject. This object will be immutable.- Parameters:
value- theStringrepresenting theLogoutResponseobject.- Returns:
- the
LogoutResponseobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatus
public Status createStatus() throws SAML2Exception
Returns theStatusObject.- Returns:
- the
Statusobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatus
public Status createStatus(Element value) throws SAML2Exception
Returns theStatusObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theStatusobject.- Returns:
- the
Statusobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatus
public Status createStatus(String value) throws SAML2Exception
Returns theStatusObject. This object will be immutable.- Parameters:
value- theStringrepresenting theStatusobject.- Returns:
- the
Statusobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode() throws SAML2Exception
Returns theStatusCodeObject.- Returns:
- the
StatusCodeobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode(Element value) throws SAML2Exception
Returns theStatusCodeObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theStatusCodeobject.- Returns:
- the
StatusCodeobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode(String value) throws SAML2Exception
Returns theStatusCodeObject. This object will be immutable.- Parameters:
value- theStringrepresenting theStatusCodeobject.- Returns:
- the
StatusCodeobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail() throws SAML2Exception
Returns theStatusDetailObject.- Returns:
- the
StatusDetailobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail(Element value) throws SAML2Exception
Returns theStatusDetailObject. This object will be immutable.- Parameters:
value- theorg.w3c.dom.Elementrepresenting theStatusDetailobject.- Returns:
- the
StatusDetailobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail(String value) throws SAML2Exception
Returns theStatusDetailObject. This object will be immutable.- Parameters:
value- theStringrepresenting theStatusDetailobject.- Returns:
- the
StatusDetailobject. - Throws:
SAML2Exception- if it fails to instantiate the object.
-
createStatusMessage
public StatusMessage createStatusMessage(String value)
Returns theStatusMessageObject.- Parameters:
value- A StringStatusMessagevalue- Returns:
- the
StatusMessageobject.
-
createSessionIndex
public SessionIndex createSessionIndex(String value)
Returns theSessionIndexObject.- Parameters:
value- A StringSessionIndexvalue- Returns:
- the
SessionIndexobject.
-
createArtifact
public Artifact createArtifact(byte[] typecode, int endpointIndex, String sourceID, String messageHandle) throws 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:
SAML2Exception- if it fails to instantiate the object.
-
createArtifact
public Artifact createArtifact(Element elem) throws SAML2Exception
Returns a new instance ofArtifact. The return object is immutable.- Parameters:
elem- anElementrepresentation ofArtifact.- Returns:
- a new instance of
Artifact. - Throws:
SAML2Exception- if error occurs while processing theElement.
-
createArtifact
public Artifact createArtifact(String encodedArtifactValue) throws SAML2Exception
Returns a new instance ofArtifact. The return object is immutable.- Parameters:
encodedArtifactValue-Artifact Base64encoded String.- Returns:
- a new instance of
Artifact. - Throws:
SAML2Exception- if error occurs while processing the XML string.
-
createArtifactResolve
public ArtifactResolve 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 SAML2Exception
Returns a new instance ofArtifactResolve. The return object is immutable.- Parameters:
elem- anElementrepresentation ofArtifactResolve.- Returns:
- a new instance of
ArtifactResolve. - Throws:
SAML2Exception- if error occurs while processing theElement.
-
createArtifactResolve
public ArtifactResolve createArtifactResolve(String xml) throws 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:
SAML2Exception- if error occurs while processing the XML string.
-
createArtifactResponse
public ArtifactResponse 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 SAML2Exception
Returns a new instance ofArtifactResponse. The return object is immutable.- Parameters:
elem- anElementrepresentingArtifactResponse.- Returns:
- a new instance of
ArtifactResponse. - Throws:
SAML2Exception- if error occurs while processing theElement.
-
createArtifactResponse
public ArtifactResponse createArtifactResponse(String xml) throws 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:
SAML2Exception- if error occurs while processing the XML string.
-
createResponse
public Response 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
public Response createResponse(Element elem) throws SAML2Exception
Returns a new instance ofResponse. The return object is immutable.- Parameters:
elem- anElementrepresentation ofResponse.- Returns:
- a new instance of
Response. - Throws:
SAML2Exception- if error occurs while processing theElement.
-
createResponse
public Response createResponse(String xml) throws SAML2Exception
Returns a new instance ofResponse. The return object is immutable.- Parameters:
xml- a XML String representation ofResponse.- Returns:
- a new instance of
Response. - Throws:
SAML2Exception- if error occurs while processing the XML string.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest()
Returns theNameIDMappingRequestObject.- Returns:
- the
NameIDMappingRequestobject.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(Element elem) throws SAML2Exception
Returns theNameIDMappingRequestObject.- Parameters:
elem- the Document Element ofNameIDMappingRequestobject.- Returns:
- the
NameIDMappingRequestobject. - Throws:
SAML2Exception- ifNameIDMappingRequestcannot be created.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(String value) throws SAML2Exception
Returns theNameIDMappingRequestObject.- Parameters:
value-NameIDMappingRequestXML String.- Returns:
- the
NameIDMappingRequestobject. - Throws:
SAML2Exception- ifNameIDMappingRequestcannot be created.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse()
Returns theNameIDMappingResponseObject.- Returns:
- the
NameIDMappingResponseobject.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(Element elem) throws SAML2Exception
Returns theNameIDMappingResponseObject.- Parameters:
elem- the Document Element ofNameIDMappingResponseobject.- Returns:
- the
NameIDMappingResponseobject. - Throws:
SAML2Exception- ifNameIDMappingResponsecannot be created.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(String value) throws SAML2Exception
Returns theNameIDMappingResponseObject.- Parameters:
value-NameIDMappingResponseXML String.- Returns:
- the
NameIDMappingResponseobject. - Throws:
SAML2Exception- ifNameIDMappingResponsecannot be created.
-
-