Class FSRequest
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractRequest
-
- com.sun.identity.saml.protocol.Request
-
- com.sun.identity.federation.message.FSRequest
-
@Deprecated public class FSRequest extends Request
Deprecated.since 12.0.0This class represents a LibertyRequest. It extends from the abstract base classAbstractRequest.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidDeprecated.-
Fields inherited from class com.sun.identity.saml.protocol.Request
artifacts, ASSERTION_ARTIFACT, ASSERTION_ID_REFERENCE, assertionIDRefs, ATTRIBUTE_QUERY, AUTHENTICATION_QUERY, AUTHORIZATION_DECISION_QUERY, contentType, NOT_SUPPORTED, query, signatureString, xmlString
-
Fields inherited from class com.sun.identity.saml.protocol.AbstractRequest
issueInstant, majorVersion, minorVersion, requestID, respondWiths, signature, signed, valid
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFSRequest()Deprecated.FSRequest(String requestId, Query query)Deprecated.Constructor createsRequestobject.FSRequest(String requestId, List contents)Deprecated.Constructor createsRequestobject.FSRequest(Element root)Deprecated.Constructor creates aFSRequestobject from aXMLDocument Element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetID()Deprecated.Returns the value ofidattribute.intgetMinorVersion()Deprecated.Returns theMinorVersion.static RequestparseXML(String xml)Deprecated.Parses theXMLDocument String to construct aRequestobject.voidsetID(String id)Deprecated.Sets the value ofidattribute.voidsetMinorVersion(int version)Deprecated.Sets theMinorVersion.StringtoXMLString()Deprecated.Creates a String representation of the<samlp:Request>element.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Creates a String representation of the<samlp:Request>element.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.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
-
-
-
-
Field Detail
-
id
protected String id
Deprecated.
-
-
Constructor Detail
-
FSRequest
protected FSRequest()
Deprecated.
-
FSRequest
public FSRequest(String requestId, Query query) throws SAMLException
Deprecated.Constructor createsRequestobject. This shall only be used at the client side to construct aRequestobject. NOTE: The content here is just the body for the Request. The constructor will addMajorVersion,MinorVersion, etc. to form a complete Request.- Parameters:
requestId- the request identifier, if this value is null then one will be generated.query-AuthenticationQueryto be included in the Request.- Throws:
SAMLException
-
FSRequest
public FSRequest(String requestId, List contents) throws SAMLException
Deprecated.Constructor createsRequestobject. This shall only be used at the client side to construct aRequestobject. NOTE: The content here is just the body for the Request. The constructor will addMajorVersion,MinorVersion, etc. to form a complete Request.- Parameters:
requestId- the request identifier, if this value is null then one will be generated.contents- aListof 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 moreAssertionIDReference, or 1 or more ofAssertionArtifact.- Throws:
SAMLException
-
FSRequest
public FSRequest(Element root) throws SAMLException
Deprecated.Constructor creates aFSRequestobject from aXMLDocument Element.- Parameters:
root- theXMLDocument Element.- Throws:
SAMLException
-
-
Method Detail
-
getID
public String getID()
Deprecated.Returns the value ofidattribute.- Returns:
- the value of
idattribute. - See Also:
setID(String)
-
setID
public void setID(String id)
Deprecated.Sets the value ofidattribute.- Parameters:
id- the value ofidattribute.- See Also:
getID()
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersion.- Overrides:
getMinorVersionin classAbstractRequest- Returns:
- the
MinorVersion. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets theMinorVersion.- Overrides:
setMinorVersionin classAbstractRequest- Parameters:
version- theMinorVersion.- See Also:
getMinorVersion()
-
parseXML
public static Request parseXML(String xml) throws SAMLException
Deprecated.Parses theXMLDocument String to construct aRequestobject. This method shall only be used at the server side to reconstruct a Request object based on the XML document received from client.- Parameters:
xml- theXMLDocument string.- Returns:
- the
Requestobject. - Throws:
SAMLException
-
toXMLString
public String toXMLString()
Deprecated.Creates a String representation of the<samlp:Request>element.- Returns:
- a
XMLString representing the request.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS)
Deprecated.Creates a String representation of the<samlp:Request>element.- Parameters:
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.- Returns:
- a string containing the valid XML for this object.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)
Deprecated.Creates a String representation of the<samlp:Request>element.- Parameters:
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.- Returns:
- a string containing the valid XML for this object.
-
-