public class LibSAMLRequest extends Request
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT
Constructor and Description |
---|
LibSAMLRequest(org.w3c.dom.Document owner)
Creates a new
LibSAMLRequest instance. |
LibSAMLRequest(org.w3c.dom.Element element)
Creates a new
LibSAMLRequest instance from the given Element node. |
LibSAMLRequest(org.w3c.dom.Element element, java.lang.String SystemId)
Creates a new
LibSAMLRequest instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
XSSignature |
addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod)
Adds a dsig:Signature to this request, replacing any existing signature.
|
XSSignature |
addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod, java.lang.String digestMethod)
Adds a dsig:Signature to this request, replacing any existing signature.
|
java.lang.String |
getId()
Returns the value of the "id" attribute of this request element.
|
void |
setId(java.lang.String id)
Sets the "id" attribute of this request element.
|
addAssertionArtifact, addAssertionIDReference, getAssertionArtifacts, getAssertionIDReferences, getAttributeQuery, getAuthenticationQuery, getAuthorizationDecisionQuery, setQuery
addRespondWith, addRespondWithValue, getID, getIssueInstant, getLocalNamesPrecedeDSig, getNSURIsPrecedeDSig, getRequestID, getRespondWiths, getRespondWithValues, setIssueInstant, setRequestID
clearSignature, getInstance, getMajorVersion, getMinorVersion, getSignature, isSigned, setVersion, sign, sign, sign, sign, verify, verify
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public LibSAMLRequest(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
LibSAMLRequest
instance from the given Element node.element
- A SAML protocal Request element of the SignedSAMLRequestType.org.w3c.dom.DOMException
public LibSAMLRequest(org.w3c.dom.Element element, java.lang.String SystemId) throws org.w3c.dom.DOMException
LibSAMLRequest
instance from the given Element node.element
- A SAML protocal Request element of the SignedSAMLRequestType.systemId
- The URI string system ID for the LibSAMLRequest
.org.w3c.dom.DOMException
public LibSAMLRequest(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
LibSAMLRequest
instance.owner
- The owner document of the new request element.org.w3c.dom.DOMException
public void setId(java.lang.String id) throws org.w3c.dom.DOMException
id
- The ID name of this element.org.w3c.dom.DOMException
public java.lang.String getId()
null
if the "id" attribute is missing.public XSSignature addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod)
sign()
methods must be invoked on the returned oracle.security.xmlsec.dsig.XSSignature
object. The XSSignature
can be used to add a dsig:KeyInfo containing, for example, the signer's public key certificate.
The default Reference digest algorithm is SHA-1. Use the addSignature(String signatureMethod, String c14nMethod, String digestMethod)
method to specify an alternative message digest algorithm. See XMLURI
for algorithm URI string constants.
Note: If this Request element has an "id" attribute, then its value is used as the target of the new signature's Reference element. If no "id" attribute is present, as would be the case for a samlp:Request, an XPath Filter transform is added to the signature Reference to identify the Request element to be signed.
addSignature
in class SAMLMessage
signatureMethod
- The URI identifying the signature algorithm to be used.c14nMethod
- The URI identifying the canonicalization algorithm to be used.XSSignature
, XSKeyInfo
, XMLURI
public XSSignature addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod, java.lang.String digestMethod)
sign()
methods must be invoked on the returned oracle.security.xmlsec.dsig.XSSignature
object. The XSSignature
can be used to add a dsig:KeyInfo containing, for example, the signer's public key certificate.
See XMLURI
for algorithm URI string constants.
Note: If this Request element has an "id" attribute, then its value is used as the target of the new signature's Reference element. If no "id" attribute is present, as would be the case for a samlp:Request, an XPath Filter transform is added to the signature Reference to identify the Request element to be signed.
addSignature
in class SAMLMessage
signatureMethod
- The URI identifying the signature algorithm to be used.c14nMethod
- The URI identifying the canonicalization algorithm to be used.digestMethod
- The URI identifying the message digest algorithm to be used.XSSignature
, XSKeyInfo
, XMLURI