|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.identity.saml.protocol.AbstractRequest
com.sun.identity.saml.protocol.Request
com.sun.identity.federation.message.FSRequest
This Request class represents a Request XML document.
It extends from the abstract base class AbstractRequest.
| Field Summary |
| Fields inherited from class com.sun.identity.saml.protocol.Request |
ASSERTION_ARTIFACT, ASSERTION_ID_REFERENCE, ATTRIBUTE_QUERY, AUTHENTICATION_QUERY, AUTHORIZATION_DECISION_QUERY, NOT_SUPPORTED |
| Constructor Summary | |
FSRequest(org.w3c.dom.Element root)
Constructs a FSRequest. |
|
FSRequest(java.lang.String requestId,
java.util.List contents)
This constructor shall only be used at the client side to construct a Request object. |
|
FSRequest(java.lang.String requestId,
Query query)
This constructor shall only be used at the client side to construct a Request object. |
|
| Method Summary | |
java.lang.String |
getID()
Returns ID of this request. |
int |
getMinorVersion()
Gets minor version |
static Request |
parseXML(java.lang.String xml)
This method shall only be used at the server side to reconstruct a Request object based on the XML document received from client. |
void |
setID(java.lang.String id)
Set ID of this request. |
void |
setMinorVersion(int version)
Sets minor version |
java.lang.String |
toXMLString()
This method translates the request to an XML document String based on the Request schema described above. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Creates a String representation of the <samlp:Request>
element. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Creates a String representation of the <samlp:Request>
element. |
| Methods inherited from class com.sun.identity.saml.protocol.Request |
getAssertionArtifact, getAssertionIDReference, getContentType, getQuery, setSignature, signXML, toString, toString, toString |
| Methods inherited from class com.sun.identity.saml.protocol.AbstractRequest |
addRespondWith, getIssueInstant, getMajorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setRequestID |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FSRequest(java.lang.String requestId,
Query query)
throws SAMLException
MajorVersion,
MinorVersion, etc. to form a complete Request.
requestId - If it's null, the constructor will create one.query - A Query to be included in the Request.
SAMLException
public FSRequest(java.lang.String requestId,
java.util.List contents)
throws SAMLException
MajorVersion,
MinorVersion, etc. to form a complete Request.
requestId - If it's null, the constructor will create one.contents - A List of objects that are the contents of Request that
the client wants to send to the server. It could be an
AuthenticationQuery,
AuthorizationDecisionQuery,
AttributeQuery, 1 or more
AssertionIDReference, or 1 or more of
AssertionArtifact.
SAMLException
public FSRequest(org.w3c.dom.Element root)
throws SAMLException
FSRequest.
root - XML root node.
SAMLException| Method Detail |
public java.lang.String getID()
public void setID(java.lang.String id)
id - ID of this request.public int getMinorVersion()
getMinorVersion in class AbstractRequestpublic void setMinorVersion(int version)
setMinorVersion in class AbstractRequestversion - minor version to be set
public static Request parseXML(java.lang.String xml)
throws SAMLException
xml - The Request XML String.
NOTE: this is a complete SAML request XML string with
RequestID, MajorVersion, etc.
SAMLException - when an error occurs.public java.lang.String toXMLString()
RequestID, MajorVersion, etc.
public java.lang.String toXMLString(boolean includeNS,
boolean declareNS)
<samlp:Request>
element.
includeNS - Determines whether or not the names pace qualifier
is prepended to the Element when converteddeclareNS - Determines whether or not the name space is declared
within the Element.
public java.lang.String toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
<samlp:Request>
element.
includeNS - Determines whether or not the name space qualifier
is prepended to the Element when converteddeclareNS - Determines whether or not the name space is declared
within the Element.includeHeader - Determines whether the output include the XML
declaration header.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||