Package com.sun.identity.saml2.protocol
Class ProtocolFactory
- java.lang.Object
-
- com.sun.identity.saml2.protocol.ProtocolFactory
-
@SupportedAll 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 Artifact
createArtifact(byte[] typecode, int endpointIndex, String sourceID, String messageHandle)
Returns a new instance ofArtifact
.Artifact
createArtifact(String encodedArtifactValue)
Returns a new instance ofArtifact
.Artifact
createArtifact(Element elem)
Returns a new instance ofArtifact
.ArtifactResolve
createArtifactResolve()
Returns a new instance ofArtifactResolve
.ArtifactResolve
createArtifactResolve(String xml)
Returns a new instance ofArtifactResolve
.ArtifactResolve
createArtifactResolve(Element elem)
Returns a new instance ofArtifactResolve
.ArtifactResponse
createArtifactResponse()
Returns a new instance ofArtifactResponse
.ArtifactResponse
createArtifactResponse(String xml)
Returns a new instance ofArtifactResponse
.ArtifactResponse
createArtifactResponse(Element elem)
Returns a new instance ofArtifactResponse
.AssertionIDRequest
createAssertionIDRequest()
Returns theAssertionIDRequest
Object.AssertionIDRequest
createAssertionIDRequest(String value)
Returns theAssertionIDRequest
Object.AssertionIDRequest
createAssertionIDRequest(Element value)
Returns theAssertionIDRequest
Object.AttributeQuery
createAttributeQuery()
Returns theAttributeQuery
Object.AttributeQuery
createAttributeQuery(String value)
Returns theAttributeQuery
Object.AttributeQuery
createAttributeQuery(Element value)
Returns theAttributeQuery
Object.AuthnQuery
createAuthnQuery()
Returns theAuthnQuery
Object.AuthnQuery
createAuthnQuery(String value)
Returns theAuthnQuery
Object.AuthnQuery
createAuthnQuery(Element value)
Returns theAuthnQuery
Object.AuthnRequest
createAuthnRequest()
Returns theAuthnRequest
Object.AuthnRequest
createAuthnRequest(String value)
Returns theAuthnRequest
Object.AuthnRequest
createAuthnRequest(Element value)
Returns theAuthnRequest
Object.Extensions
createExtensions()
Returns theExtensions
Object.Extensions
createExtensions(String value)
Returns theExtensions
Object.Extensions
createExtensions(Element value)
Returns theExtensions
Object.GetComplete
createGetComplete()
Returns theGetComplete
Object.GetComplete
createGetComplete(String value)
Returns theGetComplete
Object.GetComplete
createGetComplete(Element value)
Returns theGetComplete
Object.IDPEntry
createIDPEntry()
Returns theIDPEntry
Object.IDPEntry
createIDPEntry(String value)
Returns theIDPEntry
Object.IDPEntry
createIDPEntry(Element value)
Returns theIDPEntry
Object.IDPList
createIDPList()
Returns theIDPList
Object.IDPList
createIDPList(String value)
Returns theIDPList
Object.IDPList
createIDPList(Element value)
Returns theIDPList
Object.LogoutRequest
createLogoutRequest()
Returns theLogoutRequest
Object.LogoutRequest
createLogoutRequest(String value)
Returns theLogoutRequest
Object.LogoutRequest
createLogoutRequest(Element value)
Returns theLogoutRequest
Object.LogoutResponse
createLogoutResponse()
Returns theLogoutResponse
Object.LogoutResponse
createLogoutResponse(String value)
Returns theLogoutResponse
Object.LogoutResponse
createLogoutResponse(Element value)
Returns theLogoutResponse
Object.ManageNameIDRequest
createManageNameIDRequest()
Returns a mutable manage name identifier request object.ManageNameIDRequest
createManageNameIDRequest(String value)
Returns an immutable manage name identifier request object.ManageNameIDRequest
createManageNameIDRequest(Element value)
Returns an immutable manage name identifier request object.ManageNameIDResponse
createManageNameIDResponse()
Returns a mutable manage name identifier response object.ManageNameIDResponse
createManageNameIDResponse(String value)
Returns an immutable manage name identifier response object.ManageNameIDResponse
createManageNameIDResponse(Element value)
Returns an immutable manage name identifier response object.NameIDMappingRequest
createNameIDMappingRequest()
Returns theNameIDMappingRequest
Object.NameIDMappingRequest
createNameIDMappingRequest(String value)
Returns theNameIDMappingRequest
Object.NameIDMappingRequest
createNameIDMappingRequest(Element elem)
Returns theNameIDMappingRequest
Object.NameIDMappingResponse
createNameIDMappingResponse()
Returns theNameIDMappingResponse
Object.NameIDMappingResponse
createNameIDMappingResponse(String value)
Returns theNameIDMappingResponse
Object.NameIDMappingResponse
createNameIDMappingResponse(Element elem)
Returns theNameIDMappingResponse
Object.NameIDPolicy
createNameIDPolicy()
Returns theNameIDPolicy
Object.NameIDPolicy
createNameIDPolicy(String value)
Returns theNameIDPolicy
Object.NameIDPolicy
createNameIDPolicy(Element value)
Returns theNameIDPolicy
Object.NewEncryptedID
createNewEncryptedID(String value)
Returns an immutable new encrypted identifier object.NewEncryptedID
createNewEncryptedID(Element value)
Returns an immutable new encrypted identifier object.NewID
createNewID(String value)
Returns an new identifier object.NewID
createNewID(Element value)
Returns an new identifier object.RequestedAuthnContext
createRequestedAuthnContext()
Returns a mutable requested authentication context object.RequestedAuthnContext
createRequestedAuthnContext(String value)
Returns an immutable requested authentication context object.RequestedAuthnContext
createRequestedAuthnContext(Element value)
Returns an immutable requested authentication context object.RequesterID
createRequesterID()
Returns theRequesterID
Object.RequesterID
createRequesterID(String value)
Returns theRequesterID
Object.RequesterID
createRequesterID(Element value)
Returns theRequesterID
Object.Response
createResponse()
Returns a new instance ofResponse
.Response
createResponse(String xml)
Returns a new instance ofResponse
.Response
createResponse(Element elem)
Returns a new instance ofResponse
.Scoping
createScoping()
Returns theScoping
Object.Scoping
createScoping(String value)
Returns theScoping
Object.Scoping
createScoping(Element value)
Returns theScoping
Object.SessionIndex
createSessionIndex(String value)
Returns theSessionIndex
Object.Status
createStatus()
Returns theStatus
Object.Status
createStatus(String value)
Returns theStatus
Object.Status
createStatus(Element value)
Returns theStatus
Object.StatusCode
createStatusCode()
Returns theStatusCode
Object.StatusCode
createStatusCode(String value)
Returns theStatusCode
Object.StatusCode
createStatusCode(Element value)
Returns theStatusCode
Object.StatusDetail
createStatusDetail()
Returns theStatusDetail
Object.StatusDetail
createStatusDetail(String value)
Returns theStatusDetail
Object.StatusDetail
createStatusDetail(Element value)
Returns theStatusDetail
Object.StatusMessage
createStatusMessage(String value)
Returns theStatusMessage
Object.static ProtocolFactory
getInstance()
Returns an instance of theProtocolFactory
Object.
-
-
-
Method Detail
-
getInstance
public static ProtocolFactory getInstance()
Returns an instance of theProtocolFactory
Object.- Returns:
- an instance of the
ProtocolFactory
object.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest() throws SAML2Exception
Returns theAssertionIDRequest
Object.- Returns:
- the
AssertionIDRequest
object. - Throws:
SAML2Exception
- ifAssertionIDRequest
cannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(Element value) throws SAML2Exception
Returns theAssertionIDRequest
Object.- Parameters:
value
- the Document Element ofAssertionIDRequest
object.- Returns:
- the
AssertionIDRequest
object. - Throws:
SAML2Exception
- ifAssertionIDRequest
cannot be created.
-
createAssertionIDRequest
public AssertionIDRequest createAssertionIDRequest(String value) throws SAML2Exception
Returns theAssertionIDRequest
Object.- Parameters:
value
-AssertionIDRequest
XML String.- Returns:
- the
AssertionIDRequest
object. - Throws:
SAML2Exception
- ifAssertionIDRequest
cannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery() throws SAML2Exception
Returns theAttributeQuery
Object.- Returns:
- the
AttributeQuery
object. - Throws:
SAML2Exception
- ifAttributeQuery
cannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(Element value) throws SAML2Exception
Returns theAttributeQuery
Object.- Parameters:
value
- the Document Element ofAttributeQuery
object.- Returns:
- the
AttributeQuery
object. - Throws:
SAML2Exception
- ifAttributeQuery
cannot be created.
-
createAttributeQuery
public AttributeQuery createAttributeQuery(String value) throws SAML2Exception
Returns theAttributeQuery
Object.- Parameters:
value
-AttributeQuery
XML String.- Returns:
- the
AttributeQuery
object. - Throws:
SAML2Exception
- ifAttributeQuery
cannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery() throws SAML2Exception
Returns theAuthnQuery
Object.- Returns:
- the
AuthnQuery
object. - Throws:
SAML2Exception
- ifAuthnQuery
cannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(Element value) throws SAML2Exception
Returns theAuthnQuery
Object.- Parameters:
value
- the Document Element ofAuthnQuery
object.- Returns:
- the
AuthnQuery
object. - Throws:
SAML2Exception
- ifAuthnQuery
cannot be created.
-
createAuthnQuery
public AuthnQuery createAuthnQuery(String value) throws SAML2Exception
Returns theAuthnQuery
Object.- Parameters:
value
-AuthnQuery
XML String.- Returns:
- the
AuthnQuery
object. - Throws:
SAML2Exception
- ifAuthnQuery
cannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest() throws SAML2Exception
Returns theAuthnRequest
Object.- Returns:
- the
AuthnRequest
object. - Throws:
SAML2Exception
- ifAuthnRequest
cannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(Element value) throws SAML2Exception
Returns theAuthnRequest
Object.- Parameters:
value
- the Document Element ofAuthnRequest
object.- Returns:
- the
AuthnRequest
object. - Throws:
SAML2Exception
- ifAuthnRequest
cannot be created.
-
createAuthnRequest
public AuthnRequest createAuthnRequest(String value) throws SAML2Exception
Returns theAuthnRequest
Object.- Parameters:
value
-AuthnRequest
XML String.- Returns:
- the
AuthnRequest
object. - Throws:
SAML2Exception
- ifAuthnRequest
cannot be created.
-
createExtensions
public Extensions createExtensions() throws SAML2Exception
Returns theExtensions
Object.- Returns:
- the
Extensions
object. - Throws:
SAML2Exception
- ifExtensions
cannot be created.
-
createExtensions
public Extensions createExtensions(Element value) throws SAML2Exception
Returns theExtensions
Object.- Parameters:
value
- the Document Element ofExtensions
object.- Returns:
- instance of
Extensions
object. - Throws:
SAML2Exception
- ifExtensions
cannot be created.
-
createExtensions
public Extensions createExtensions(String value) throws SAML2Exception
Returns theExtensions
Object.- Parameters:
value
- XML String Representation ofExtensions
object.- Returns:
- instance of
Extensions
object. - Throws:
SAML2Exception
- ifExtensions
cannot be created.
-
createGetComplete
public GetComplete createGetComplete() throws SAML2Exception
Returns theGetComplete
Object.- Returns:
- instance of
GetComplete
object. - Throws:
SAML2Exception
- ifGetComplete
cannot be created.
-
createGetComplete
public GetComplete createGetComplete(Element value) throws SAML2Exception
Returns theGetComplete
Object.- Parameters:
value
- Document Element ofGetComplete
object.- Returns:
- instance of
GetComplete
Object. - Throws:
SAML2Exception
- ifGetComplete
cannot be created.
-
createGetComplete
public GetComplete createGetComplete(String value) throws SAML2Exception
Returns theGetComplete
Object.- Parameters:
value
- XML String representation ofGetComplete
object.- Returns:
- instance of
GetComplete
Object. - Throws:
SAML2Exception
- ifGetComplete
cannot be created.
-
createIDPEntry
public IDPEntry createIDPEntry() throws SAML2Exception
Returns theIDPEntry
Object.- Returns:
- instance of
IDPEntry
object. - Throws:
SAML2Exception
- ifIDPEntry
cannot be created.
-
createIDPEntry
public IDPEntry createIDPEntry(Element value) throws SAML2Exception
Returns theIDPEntry
Object.- Parameters:
value
- Document Element ofIDPEntry
object.- Returns:
- instance of
IDPEntry
object. - Throws:
SAML2Exception
- ifIDPEntry
cannot be created.
-
createIDPEntry
public IDPEntry createIDPEntry(String value) throws SAML2Exception
Returns theIDPEntry
Object.- Parameters:
value
- XML Representation of theIDPEntry
object.- Returns:
- instance of
IDPEntry
Object. - Throws:
SAML2Exception
- ifIDPEntry
cannot be created.
-
createIDPList
public IDPList createIDPList() throws SAML2Exception
Returns theIDPList
Object.- Returns:
- instance of
IDPList
Object. - Throws:
SAML2Exception
- ifIDPList
cannot be created.
-
createIDPList
public IDPList createIDPList(Element value) throws SAML2Exception
Returns theIDPList
Object.- Parameters:
value
- Document Element ofIDPList
Object.- Returns:
- instance of
IDPList
Object. - Throws:
SAML2Exception
- ifIDPList
cannot be created.
-
createIDPList
public IDPList createIDPList(String value) throws SAML2Exception
Returns theIDPList
Object.- Parameters:
value
- XML String Representation ofIDPList
Object.- Returns:
- instance of
IDPList
Object. - Throws:
SAML2Exception
- ifIDPList
cannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy() throws SAML2Exception
Returns theNameIDPolicy
Object.- Returns:
- instance of
NameIDPolicy
Object. - Throws:
SAML2Exception
- ifNameIDPolicy
cannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(Element value) throws SAML2Exception
Returns theNameIDPolicy
Object.- Parameters:
value
- Document Element ofNameIDPolicy
Object.- Returns:
- instance of
NameIDPolicy
Object. - Throws:
SAML2Exception
- ifNameIDPolicy
cannot be created.
-
createNameIDPolicy
public NameIDPolicy createNameIDPolicy(String value) throws SAML2Exception
Returns theNameIDPolicy
Object.- Parameters:
value
- XML String Representation ofNameIDPolicy
object.- Returns:
- instance of
NameIDPolicy
object. - Throws:
SAML2Exception
- ifNameIDPolicy
cannot be created.
-
createRequesterID
public RequesterID createRequesterID() throws SAML2Exception
Returns theRequesterID
Object.- Returns:
- instance of
RequesterID
Object. - Throws:
SAML2Exception
- ifRequesterID
cannot be created.
-
createRequesterID
public RequesterID createRequesterID(Element value) throws SAML2Exception
Returns theRequesterID
Object.- Parameters:
value
- Document Element ofRequesterID
Object.- Returns:
- instance of
RequesterID
Object. - Throws:
SAML2Exception
- ifRequesterID
cannot be created.
-
createRequesterID
public RequesterID createRequesterID(String value) throws SAML2Exception
Returns theRequesterID
Object.- Parameters:
value
- XML String Representation ofRequesterID
object.- Returns:
- instance of
RequesterID
Object. - Throws:
SAML2Exception
- ifRequesterID
cannot be created.
-
createScoping
public Scoping createScoping() throws SAML2Exception
Returns theScoping
Object.- Returns:
- instance of
Scoping
Object. - Throws:
SAML2Exception
- ifScoping
cannot be created.
-
createScoping
public Scoping createScoping(Element value) throws SAML2Exception
Returns theScoping
Object.- Parameters:
value
- Document Element ofScoping
Object.- Returns:
- instance of
Scoping
Object. - Throws:
SAML2Exception
- ifScoping
cannot be created.
-
createScoping
public Scoping createScoping(String value) throws SAML2Exception
Returns theScoping
Object.- Parameters:
value
- XML String Representation ofScoping
Object.- Returns:
- instance of
Scoping
Object. - Throws:
SAML2Exception
- ifScoping
cannot be created.
-
createRequestedAuthnContext
public RequestedAuthnContext createRequestedAuthnContext() throws SAML2Exception
Returns a mutable requested authentication context object.- Returns:
- the
RequestedAuthnContext
object. - 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
ManageNameIDRequest
object.
-
createManageNameIDRequest
public ManageNameIDRequest createManageNameIDRequest(Element value) throws SAML2Exception
Returns an immutable manage name identifier request object.- Parameters:
value
- DOM element representingManageNameIDRequest
object.- 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 representingManageNameIDRequest
object.- 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
ManageNameIDResponse
object.
-
createManageNameIDResponse
public ManageNameIDResponse createManageNameIDResponse(Element value) throws SAML2Exception
Returns an immutable manage name identifier response object.- Parameters:
value
- DOM element representingManageNameIDResponse
object.- 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 representingManageNameIDResponse
object.- 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 representingNewID
object.- 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 representingNewEncryptedID
object.- 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 representingNewEncryptedID
object.- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception
- if it failed to instantiate the object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest()
Returns theLogoutRequest
Object.- Returns:
- the
LogoutRequest
object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(Element value) throws SAML2Exception
Returns theLogoutRequest
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
object representing theLogoutRequest
object.- Returns:
- the
LogoutRequest
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createLogoutRequest
public LogoutRequest createLogoutRequest(String value) throws SAML2Exception
Returns theLogoutRequest
Object. This object will be immutable.- Parameters:
value
- theString
representing theLogoutRequest
object.- Returns:
- the
LogoutRequest
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse()
Returns theLogoutResponse
Object.- Returns:
- the
LogoutResponse
object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(Element value) throws SAML2Exception
Returns theLogoutResponse
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theLogoutResponse
object.- Returns:
- the
LogoutResponse
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createLogoutResponse
public LogoutResponse createLogoutResponse(String value) throws SAML2Exception
Returns theLogoutResponse
Object. This object will be immutable.- Parameters:
value
- theString
representing theLogoutResponse
object.- Returns:
- the
LogoutResponse
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatus
public Status createStatus() throws SAML2Exception
Returns theStatus
Object.- Returns:
- the
Status
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatus
public Status createStatus(Element value) throws SAML2Exception
Returns theStatus
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theStatus
object.- Returns:
- the
Status
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatus
public Status createStatus(String value) throws SAML2Exception
Returns theStatus
Object. This object will be immutable.- Parameters:
value
- theString
representing theStatus
object.- Returns:
- the
Status
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode() throws SAML2Exception
Returns theStatusCode
Object.- Returns:
- the
StatusCode
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode(Element value) throws SAML2Exception
Returns theStatusCode
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theStatusCode
object.- Returns:
- the
StatusCode
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusCode
public StatusCode createStatusCode(String value) throws SAML2Exception
Returns theStatusCode
Object. This object will be immutable.- Parameters:
value
- theString
representing theStatusCode
object.- Returns:
- the
StatusCode
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail() throws SAML2Exception
Returns theStatusDetail
Object.- Returns:
- the
StatusDetail
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail(Element value) throws SAML2Exception
Returns theStatusDetail
Object. This object will be immutable.- Parameters:
value
- theorg.w3c.dom.Element
representing theStatusDetail
object.- Returns:
- the
StatusDetail
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusDetail
public StatusDetail createStatusDetail(String value) throws SAML2Exception
Returns theStatusDetail
Object. This object will be immutable.- Parameters:
value
- theString
representing theStatusDetail
object.- Returns:
- the
StatusDetail
object. - Throws:
SAML2Exception
- if it fails to instantiate the object.
-
createStatusMessage
public StatusMessage createStatusMessage(String value)
Returns theStatusMessage
Object.- Parameters:
value
- A StringStatusMessage
value- Returns:
- the
StatusMessage
object.
-
createSessionIndex
public SessionIndex createSessionIndex(String value)
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 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
- anElement
representation 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 Base64
encoded 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
- anElement
representation 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
- anElement
representingArtifactResponse
.- 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
- anElement
representation 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 theNameIDMappingRequest
Object.- Returns:
- the
NameIDMappingRequest
object.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(Element elem) throws SAML2Exception
Returns theNameIDMappingRequest
Object.- Parameters:
elem
- the Document Element ofNameIDMappingRequest
object.- Returns:
- the
NameIDMappingRequest
object. - Throws:
SAML2Exception
- ifNameIDMappingRequest
cannot be created.
-
createNameIDMappingRequest
public NameIDMappingRequest createNameIDMappingRequest(String value) throws SAML2Exception
Returns theNameIDMappingRequest
Object.- Parameters:
value
-NameIDMappingRequest
XML String.- Returns:
- the
NameIDMappingRequest
object. - Throws:
SAML2Exception
- ifNameIDMappingRequest
cannot be created.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse()
Returns theNameIDMappingResponse
Object.- Returns:
- the
NameIDMappingResponse
object.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(Element elem) throws SAML2Exception
Returns theNameIDMappingResponse
Object.- Parameters:
elem
- the Document Element ofNameIDMappingResponse
object.- Returns:
- the
NameIDMappingResponse
object. - Throws:
SAML2Exception
- ifNameIDMappingResponse
cannot be created.
-
createNameIDMappingResponse
public NameIDMappingResponse createNameIDMappingResponse(String value) throws SAML2Exception
Returns theNameIDMappingResponse
Object.- Parameters:
value
-NameIDMappingResponse
XML String.- Returns:
- the
NameIDMappingResponse
object. - Throws:
SAML2Exception
- ifNameIDMappingResponse
cannot be created.
-
-