|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml2.protocol.ProtocolFactory
public class 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 | |
---|---|
Artifact |
createArtifact(byte[] typecode,
int endpointIndex,
String sourceID,
String messageHandle)
Returns a new instance of Artifact . |
Artifact |
createArtifact(Element elem)
Returns a new instance of Artifact . |
Artifact |
createArtifact(String encodedArtifactValue)
Returns a new instance of Artifact . |
ArtifactResolve |
createArtifactResolve()
Returns a new instance of ArtifactResolve . |
ArtifactResolve |
createArtifactResolve(Element elem)
Returns a new instance of ArtifactResolve . |
ArtifactResolve |
createArtifactResolve(String xml)
Returns a new instance of ArtifactResolve . |
ArtifactResponse |
createArtifactResponse()
Returns a new instance of ArtifactResponse . |
ArtifactResponse |
createArtifactResponse(Element elem)
Returns a new instance of ArtifactResponse . |
ArtifactResponse |
createArtifactResponse(String xml)
Returns a new instance of ArtifactResponse . |
AssertionIDRequest |
createAssertionIDRequest()
Returns the AssertionIDRequest Object. |
AssertionIDRequest |
createAssertionIDRequest(Element value)
Returns the AssertionIDRequest Object. |
AssertionIDRequest |
createAssertionIDRequest(String value)
Returns the AssertionIDRequest Object. |
AttributeQuery |
createAttributeQuery()
Returns the AttributeQuery Object. |
AttributeQuery |
createAttributeQuery(Element value)
Returns the AttributeQuery Object. |
AttributeQuery |
createAttributeQuery(String value)
Returns the AttributeQuery Object. |
AuthnQuery |
createAuthnQuery()
Returns the AuthnQuery Object. |
AuthnQuery |
createAuthnQuery(Element value)
Returns the AuthnQuery Object. |
AuthnQuery |
createAuthnQuery(String value)
Returns the AuthnQuery Object. |
AuthnRequest |
createAuthnRequest()
Returns the AuthnRequest Object. |
AuthnRequest |
createAuthnRequest(Element value)
Returns the AuthnRequest Object. |
AuthnRequest |
createAuthnRequest(String value)
Returns the AuthnRequest Object. |
Extensions |
createExtensions()
Returns the Extensions Object. |
Extensions |
createExtensions(Element value)
Returns the Extensions Object. |
Extensions |
createExtensions(String value)
Returns the Extensions Object. |
GetComplete |
createGetComplete()
Returns the GetComplete Object. |
GetComplete |
createGetComplete(Element value)
Returns the GetComplete Object. |
GetComplete |
createGetComplete(String value)
Returns the GetComplete Object. |
IDPEntry |
createIDPEntry()
Returns the IDPEntry Object. |
IDPEntry |
createIDPEntry(Element value)
Returns the IDPEntry Object. |
IDPEntry |
createIDPEntry(String value)
Returns the IDPEntry Object. |
IDPList |
createIDPList()
Returns the IDPList Object. |
IDPList |
createIDPList(Element value)
Returns the IDPList Object. |
IDPList |
createIDPList(String value)
Returns the IDPList Object. |
LogoutRequest |
createLogoutRequest()
Returns the LogoutRequest Object. |
LogoutRequest |
createLogoutRequest(Element value)
Returns the LogoutRequest Object. |
LogoutRequest |
createLogoutRequest(String value)
Returns the LogoutRequest Object. |
LogoutResponse |
createLogoutResponse()
Returns the LogoutResponse Object. |
LogoutResponse |
createLogoutResponse(Element value)
Returns the LogoutResponse Object. |
LogoutResponse |
createLogoutResponse(String value)
Returns the LogoutResponse Object. |
ManageNameIDRequest |
createManageNameIDRequest()
Returns a mutable manage name identifier request object. |
ManageNameIDRequest |
createManageNameIDRequest(Element value)
Returns an immutable manage name identifier request object. |
ManageNameIDRequest |
createManageNameIDRequest(String value)
Returns an immutable manage name identifier request object. |
ManageNameIDResponse |
createManageNameIDResponse()
Returns a mutable manage name identifier response object. |
ManageNameIDResponse |
createManageNameIDResponse(Element value)
Returns an immutable manage name identifier response object. |
ManageNameIDResponse |
createManageNameIDResponse(String value)
Returns an immutable manage name identifier response object. |
NameIDMappingRequest |
createNameIDMappingRequest()
Returns the NameIDMappingRequest Object. |
NameIDMappingRequest |
createNameIDMappingRequest(Element elem)
Returns the NameIDMappingRequest Object. |
NameIDMappingRequest |
createNameIDMappingRequest(String value)
Returns the NameIDMappingRequest Object. |
NameIDMappingResponse |
createNameIDMappingResponse()
Returns the NameIDMappingResponse Object. |
NameIDMappingResponse |
createNameIDMappingResponse(Element elem)
Returns the NameIDMappingResponse Object. |
NameIDMappingResponse |
createNameIDMappingResponse(String value)
Returns the NameIDMappingResponse Object. |
NameIDPolicy |
createNameIDPolicy()
Returns the NameIDPolicy Object. |
NameIDPolicy |
createNameIDPolicy(Element value)
Returns the NameIDPolicy Object. |
NameIDPolicy |
createNameIDPolicy(String value)
Returns the NameIDPolicy Object. |
NewEncryptedID |
createNewEncryptedID(Element value)
Returns an immutable new encrypted identifier object. |
NewEncryptedID |
createNewEncryptedID(String value)
Returns an immutable new encrypted identifier object. |
NewID |
createNewID(Element value)
Returns an new identifier object. |
NewID |
createNewID(String value)
Returns an new identifier object. |
RequestedAuthnContext |
createRequestedAuthnContext()
Returns a mutable requested authentication context object. |
RequestedAuthnContext |
createRequestedAuthnContext(Element value)
Returns an immutable requested authentication context object. |
RequestedAuthnContext |
createRequestedAuthnContext(String value)
Returns an immutable requested authentication context object. |
RequesterID |
createRequesterID()
Returns the RequesterID Object. |
RequesterID |
createRequesterID(Element value)
Returns the RequesterID Object. |
RequesterID |
createRequesterID(String value)
Returns the RequesterID Object. |
Response |
createResponse()
Returns a new instance of Response . |
Response |
createResponse(Element elem)
Returns a new instance of Response . |
Response |
createResponse(String xml)
Returns a new instance of Response . |
Scoping |
createScoping()
Returns the Scoping Object. |
Scoping |
createScoping(Element value)
Returns the Scoping Object. |
Scoping |
createScoping(String value)
Returns the Scoping Object. |
SessionIndex |
createSessionIndex(String value)
Returns the SessionIndex Object. |
Status |
createStatus()
Returns the Status Object. |
Status |
createStatus(Element value)
Returns the Status Object. |
Status |
createStatus(String value)
Returns the Status Object. |
StatusCode |
createStatusCode()
Returns the StatusCode Object. |
StatusCode |
createStatusCode(Element value)
Returns the StatusCode Object. |
StatusCode |
createStatusCode(String value)
Returns the StatusCode Object. |
StatusDetail |
createStatusDetail()
Returns the StatusDetail Object. |
StatusDetail |
createStatusDetail(Element value)
Returns the StatusDetail Object. |
StatusDetail |
createStatusDetail(String value)
Returns the StatusDetail Object. |
StatusMessage |
createStatusMessage(String value)
Returns the StatusMessage Object. |
static ProtocolFactory |
getInstance()
Returns an instance of the ProtocolFactory Object. |
Method Detail |
---|
public static ProtocolFactory getInstance()
ProtocolFactory
Object.
ProtocolFactory
object.public AssertionIDRequest createAssertionIDRequest() throws SAML2Exception
AssertionIDRequest
Object.
AssertionIDRequest
object.
SAML2Exception
- if AssertionIDRequest
cannot be
created.public AssertionIDRequest createAssertionIDRequest(Element value) throws SAML2Exception
AssertionIDRequest
Object.
value
- the Document Element of AssertionIDRequest
object.
AssertionIDRequest
object.
SAML2Exception
- if AssertionIDRequest
cannot be
created.public AssertionIDRequest createAssertionIDRequest(String value) throws SAML2Exception
AssertionIDRequest
Object.
value
- AssertionIDRequest
XML String.
AssertionIDRequest
object.
SAML2Exception
- if AssertionIDRequest
cannot be
created.public AttributeQuery createAttributeQuery() throws SAML2Exception
AttributeQuery
Object.
AttributeQuery
object.
SAML2Exception
- if AttributeQuery
cannot be created.public AttributeQuery createAttributeQuery(Element value) throws SAML2Exception
AttributeQuery
Object.
value
- the Document Element of AttributeQuery
object.
AttributeQuery
object.
SAML2Exception
- if AttributeQuery
cannot be created.public AttributeQuery createAttributeQuery(String value) throws SAML2Exception
AttributeQuery
Object.
value
- AttributeQuery
XML String.
AttributeQuery
object.
SAML2Exception
- if AttributeQuery
cannot be created.public AuthnQuery createAuthnQuery() throws SAML2Exception
AuthnQuery
Object.
AuthnQuery
object.
SAML2Exception
- if AuthnQuery
cannot be created.public AuthnQuery createAuthnQuery(Element value) throws SAML2Exception
AuthnQuery
Object.
value
- the Document Element of AuthnQuery
object.
AuthnQuery
object.
SAML2Exception
- if AuthnQuery
cannot be created.public AuthnQuery createAuthnQuery(String value) throws SAML2Exception
AuthnQuery
Object.
value
- AuthnQuery
XML String.
AuthnQuery
object.
SAML2Exception
- if AuthnQuery
cannot be created.public AuthnRequest createAuthnRequest() throws SAML2Exception
AuthnRequest
Object.
AuthnRequest
object.
SAML2Exception
- if AuthnRequest
cannot be created.public AuthnRequest createAuthnRequest(Element value) throws SAML2Exception
AuthnRequest
Object.
value
- the Document Element of AuthnRequest
object.
AuthnRequest
object.
SAML2Exception
- if AuthnRequest
cannot be created.public AuthnRequest createAuthnRequest(String value) throws SAML2Exception
AuthnRequest
Object.
value
- AuthnRequest
XML String.
AuthnRequest
object.
SAML2Exception
- if AuthnRequest
cannot be created.public Extensions createExtensions() throws SAML2Exception
Extensions
Object.
Extensions
object.
SAML2Exception
- if Extensions
cannot be created.public Extensions createExtensions(Element value) throws SAML2Exception
Extensions
Object.
value
- the Document Element of Extensions
object.
Extensions
object.
SAML2Exception
- if Extensions
cannot be created.public Extensions createExtensions(String value) throws SAML2Exception
Extensions
Object.
value
- XML String Representation of Extensions
object.
Extensions object.
- Throws:
SAML2Exception
- if Extensions
cannot be created.
public GetComplete createGetComplete() throws SAML2Exception
GetComplete
Object.
GetComplete
object.
SAML2Exception
- if GetComplete
cannot be created.public GetComplete createGetComplete(Element value) throws SAML2Exception
GetComplete
Object.
value
- Document Element of GetComplete
object.
GetComplete
Object.
SAML2Exception
- if GetComplete
cannot be created.public GetComplete createGetComplete(String value) throws SAML2Exception
GetComplete
Object.
value
- XML String representation of GetComplete
object.
GetComplete
Object.
SAML2Exception
- if GetComplete
cannot be created.public IDPEntry createIDPEntry() throws SAML2Exception
IDPEntry
Object.
IDPEntry object.
- Throws:
SAML2Exception
- if IDPEntry cannot be created.
public IDPEntry createIDPEntry(Element value) throws SAML2Exception
IDPEntry
Object.
value
- Document Element of IDPEntry object.
- Returns:
- instance of
IDPEntry object.
- Throws:
SAML2Exception
- if IDPEntry cannot be created.
public IDPEntry createIDPEntry(String value) throws SAML2Exception
IDPEntry
Object.
value
- XML Representation of the IDPEntry object.
- Returns:
- instance of
IDPEntry Object.
- Throws:
SAML2Exception
- if IDPEntry cannot be created.
public IDPList createIDPList() throws SAML2Exception
IDPList
Object.
IDPList Object.
- Throws:
SAML2Exception
- if IDPList cannot be created.
public IDPList createIDPList(Element value) throws SAML2Exception
IDPList
Object.
value
- Document Element of IDPList
Object.
IDPList Object.
- Throws:
SAML2Exception
- if IDPList cannot be created.
public IDPList createIDPList(String value) throws SAML2Exception
IDPList
Object.
value
- XML String Representation of IDPList
Object.
IDPList
Object.
SAML2Exception
- if IDPList cannot be created.
public NameIDPolicy createNameIDPolicy() throws SAML2Exception
NameIDPolicy
Object.
NameIDPolicy
Object.
SAML2Exception
- if NameIDPolicy cannot be created.
public NameIDPolicy createNameIDPolicy(Element value) throws SAML2Exception
NameIDPolicy
Object.
value
- Document Element of NameIDPolicy
Object.
NameIDPolicy
Object.
SAML2Exception
- if NameIDPolicy cannot be created.
public NameIDPolicy createNameIDPolicy(String value) throws SAML2Exception
NameIDPolicy
Object.
value
- XML String Representation of NameIDPolicy
object.
NameIDPolicy
object.
SAML2Exception
- if NameIDPolicy cannot be created.
public RequesterID createRequesterID() throws SAML2Exception
RequesterID
Object.
RequesterID
Object.
SAML2Exception
- if RequesterID cannot be created.
public RequesterID createRequesterID(Element value) throws SAML2Exception
RequesterID
Object.
value
- Document Element of RequesterID
Object.
RequesterID
Object.
SAML2Exception
- if RequesterID cannot be created.
public RequesterID createRequesterID(String value) throws SAML2Exception
RequesterID
Object.
value
- XML String Representation of RequesterID
object.
RequesterID
Object.
SAML2Exception
- if RequesterID cannot be created.
public Scoping createScoping() throws SAML2Exception
Scoping
Object.
Scoping
Object.
SAML2Exception
- if Scoping cannot be created.
public Scoping createScoping(Element value) throws SAML2Exception
Scoping
Object.
value
- Document Element of Scoping
Object.
Scoping
Object.
SAML2Exception
- if Scoping cannot be created.
public Scoping createScoping(String value) throws SAML2Exception
Scoping
Object.
value
- XML String Representation of Scoping
Object.
Scoping
Object.
SAML2Exception
- if Scoping cannot be created.
public RequestedAuthnContext createRequestedAuthnContext() throws SAML2Exception
RequestedAuthnContext
object.
SAML2Exception
- if it failed to instantiate the object.public RequestedAuthnContext createRequestedAuthnContext(Element value) throws SAML2Exception
value
- DOM element representing requested authentication
context object.
SAML2Exception
- if it failed to instantiate the object.public RequestedAuthnContext createRequestedAuthnContext(String value) throws SAML2Exception
value
- XML string representing requested authentication
context object.
SAML2Exception
- if it failed to instantiate the object.public ManageNameIDRequest createManageNameIDRequest()
ManageNameIDRequest
object.public ManageNameIDRequest createManageNameIDRequest(Element value) throws SAML2Exception
value
- DOM element representing ManageNameIDRequest
object.
SAML2Exception
- if it failed to instantiate the object.public ManageNameIDRequest createManageNameIDRequest(String value) throws SAML2Exception
value
- XML string representing ManageNameIDRequest
object.
SAML2Exception
- if it failed to instantiate the object.public ManageNameIDResponse createManageNameIDResponse()
ManageNameIDResponse
object.public ManageNameIDResponse createManageNameIDResponse(Element value) throws SAML2Exception
value
- DOM element representing ManageNameIDResponse
object.
SAML2Exception
- if it failed to instantiate the object.public ManageNameIDResponse createManageNameIDResponse(String value) throws SAML2Exception
value
- XML String representing ManageNameIDResponse
object.
SAML2Exception
- if it failed to instantiate the object.public NewID createNewID(Element value) throws SAML2Exception
value
- DOM element representing NewID
object.
SAML2Exception
- if it failed to instantiate the object.public NewID createNewID(String value) throws SAML2Exception
value
- of the NewID.
- Returns:
- an immutable requested authentication context object.
- Throws:
SAML2Exception
- if it failed to instantiate the object.
public NewEncryptedID createNewEncryptedID(Element value) throws SAML2Exception
value
- DOM element representing NewEncryptedID
object.
SAML2Exception
- if it failed to instantiate the object.public NewEncryptedID createNewEncryptedID(String value) throws SAML2Exception
value
- XML String representing NewEncryptedID
object.
SAML2Exception
- if it failed to instantiate the object.public LogoutRequest createLogoutRequest()
LogoutRequest
Object.
LogoutRequest
object.public LogoutRequest createLogoutRequest(Element value) throws SAML2Exception
LogoutRequest
Object. This object will be
immutable.
value
- the org.w3c.dom.Element
object representing the
LogoutRequest
object.
LogoutRequest
object.
SAML2Exception
- if it fails to instantiate the object.public LogoutRequest createLogoutRequest(String value) throws SAML2Exception
LogoutRequest
Object. This object will be
immutable.
value
- the String
representing the
LogoutRequest
object.
LogoutRequest
object.
SAML2Exception
- if it fails to instantiate the object.public LogoutResponse createLogoutResponse()
LogoutResponse
Object.
LogoutResponse
object.public LogoutResponse createLogoutResponse(Element value) throws SAML2Exception
LogoutResponse
Object. This object will be
immutable.
value
- the org.w3c.dom.Element
representing the
LogoutResponse
object.
LogoutResponse
object.
SAML2Exception
- if it fails to instantiate the object.public LogoutResponse createLogoutResponse(String value) throws SAML2Exception
LogoutResponse
Object. This object will be
immutable.
value
- the String
representing the
LogoutResponse
object.
LogoutResponse
object.
SAML2Exception
- if it fails to instantiate the object.public Status createStatus() throws SAML2Exception
Status
Object.
Status
object.
SAML2Exception
- if it fails to instantiate the object.public Status createStatus(Element value) throws SAML2Exception
Status
Object. This object will be
immutable.
value
- the org.w3c.dom.Element
representing the
Status
object.
Status
object.
SAML2Exception
- if it fails to instantiate the object.public Status createStatus(String value) throws SAML2Exception
Status
Object. This object will be
immutable.
value
- the String
representing the
Status
object.
Status
object.
SAML2Exception
- if it fails to instantiate the object.public StatusCode createStatusCode() throws SAML2Exception
StatusCode
Object.
StatusCode
object.
SAML2Exception
- if it fails to instantiate the object.public StatusCode createStatusCode(Element value) throws SAML2Exception
StatusCode
Object. This object will be
immutable.
value
- the org.w3c.dom.Element
representing the
StatusCode
object.
StatusCode
object.
SAML2Exception
- if it fails to instantiate the object.public StatusCode createStatusCode(String value) throws SAML2Exception
StatusCode
Object. This object will be
immutable.
value
- the String
representing the
StatusCode
object.
StatusCode
object.
SAML2Exception
- if it fails to instantiate the object.public StatusDetail createStatusDetail() throws SAML2Exception
StatusDetail
Object.
StatusDetail
object.
SAML2Exception
- if it fails to instantiate the object.public StatusDetail createStatusDetail(Element value) throws SAML2Exception
StatusDetail
Object. This object will be
immutable.
value
- the org.w3c.dom.Element
representing the
StatusDetail
object.
StatusDetail
object.
SAML2Exception
- if it fails to instantiate the object.public StatusDetail createStatusDetail(String value) throws SAML2Exception
StatusDetail
Object. This object will be
immutable.
value
- the String
representing the
StatusDetail
object.
StatusDetail
object.
SAML2Exception
- if it fails to instantiate the object.public StatusMessage createStatusMessage(String value)
StatusMessage
Object.
value
- A String StatusMessage
value
StatusMessage
object.public SessionIndex createSessionIndex(String value)
SessionIndex
Object.
value
- A String SessionIndex
value
SessionIndex
object.public Artifact createArtifact(byte[] typecode, int endpointIndex, String sourceID, String messageHandle) throws SAML2Exception
Artifact
.
typecode
- two byte sequence representing TypeCode
.endpointIndex
- integer value representing
EndpointIndex
.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.
Artifact
.
SAML2Exception
- if it fails to instantiate the object.public Artifact createArtifact(Element elem) throws SAML2Exception
Artifact
.
The return object is immutable.
elem
- an Element
representation of
Artifact
.
Artifact
.
SAML2Exception
- if error occurs while processing the
Element
.public Artifact createArtifact(String encodedArtifactValue) throws SAML2Exception
Artifact
.
The return object is immutable.
encodedArtifactValue
- Artifact Base64
encoded String.
Artifact
.
SAML2Exception
- if error occurs while processing the XML string.public ArtifactResolve createArtifactResolve()
ArtifactResolve
.
Caller may need to call setters of the class to populate the object.
ArtifactResolve
.public ArtifactResolve createArtifactResolve(Element elem) throws SAML2Exception
ArtifactResolve
.
The return object is immutable.
elem
- an Element
representation of
ArtifactResolve
.
ArtifactResolve
.
SAML2Exception
- if error occurs
while processing the Element
.public ArtifactResolve createArtifactResolve(String xml) throws SAML2Exception
ArtifactResolve
.
The return object is immutable.
xml
- a XML String representation of ArtifactResolve
.
ArtifactResolve
.
SAML2Exception
- if error occurs while processing the XML string.public ArtifactResponse createArtifactResponse()
ArtifactResponse
.
Caller may need to call setters of the class to populate the object.
ArtifactResponse
.public ArtifactResponse createArtifactResponse(Element elem) throws SAML2Exception
ArtifactResponse
.
The return object is immutable.
elem
- an Element
representing
ArtifactResponse
.
ArtifactResponse
.
SAML2Exception
- if error occurs
while processing the Element
.public ArtifactResponse createArtifactResponse(String xml) throws SAML2Exception
ArtifactResponse
.
The return object is immutable.
xml
- a XML String representation of ArtifactResponse
.
ArtifactResponse
.
SAML2Exception
- if error occurs
while processing the XML string.public Response createResponse()
Response
.
Caller may need to call setters of the class to populate the object.
Response
.public Response createResponse(Element elem) throws SAML2Exception
Response
.
The return object is immutable.
elem
- an Element
representation of
Response
.
Response
.
SAML2Exception
- if error occurs
while processing the Element
.public Response createResponse(String xml) throws SAML2Exception
Response
.
The return object is immutable.
xml
- a XML String representation of Response
.
Response
.
SAML2Exception
- if error occurs while processing the XML string.public NameIDMappingRequest createNameIDMappingRequest()
NameIDMappingRequest
Object.
NameIDMappingRequest
object.public NameIDMappingRequest createNameIDMappingRequest(Element elem) throws SAML2Exception
NameIDMappingRequest
Object.
elem
- the Document Element of NameIDMappingRequest
object.
NameIDMappingRequest
object.
SAML2Exception
- if NameIDMappingRequest
cannot be
created.public NameIDMappingRequest createNameIDMappingRequest(String value) throws SAML2Exception
NameIDMappingRequest
Object.
value
- NameIDMappingRequest
XML String.
NameIDMappingRequest
object.
SAML2Exception
- if NameIDMappingRequest
cannot be
created.public NameIDMappingResponse createNameIDMappingResponse()
NameIDMappingResponse
Object.
NameIDMappingResponse
object.public NameIDMappingResponse createNameIDMappingResponse(Element elem) throws SAML2Exception
NameIDMappingResponse
Object.
elem
- the Document Element of NameIDMappingResponse
object.
NameIDMappingResponse
object.
SAML2Exception
- if NameIDMappingResponse
cannot be
created.public NameIDMappingResponse createNameIDMappingResponse(String value) throws SAML2Exception
NameIDMappingResponse
Object.
value
- NameIDMappingResponse
XML String.
NameIDMappingResponse
object.
SAML2Exception
- if NameIDMappingResponse
cannot be
created.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |