public abstract class LibRequestMessage
extends oracle.security.xmlsec.samlp.RequestType
| Modifier | Constructor and Description | 
|---|---|
protected | 
LibRequestMessage(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName)
Creates a new  
LibRequestMessage instance. | 
protected | 
LibRequestMessage(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName, java.lang.String requestId, java.util.Date issueInstant)
Creates a new  
LibRequestMessage instance. | 
protected | 
LibRequestMessage(org.w3c.dom.Element element)
Creates a new  
LibRequestMessage instance from the given Element node. | 
protected | 
LibRequestMessage(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new  
LibRequestMessage instance from the given Element node. | 
| Modifier and Type | Method and Description | 
|---|---|
oracle.security.xmlsec.dsig.XSSignature | 
addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod)
Adds a ds:Signature to this request, replacing any existing signature. 
 | 
oracle.security.xmlsec.dsig.XSSignature | 
addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod, java.lang.String digestMethod)
Adds a ds:Signature to this request, replacing any existing signature. 
 | 
protected int | 
getChildElementPosition(java.lang.String nsURI, java.lang.String localName)  | 
protected abstract java.lang.String[] | 
getChildElementsLocalNames()
Returns the orderded set of the local names of the child elements specified in the schema for the XML element represented by the concrete subclass. 
 | 
protected abstract java.lang.String[] | 
getChildElementsNSURIs()
Returns the orderded set of the namespce URIs for the child elements specified in the schema for the XML element represented by the concrete subclass. 
 | 
protected java.lang.String | 
getID()
Returns the ID attribute if any of this SAML message to be used for the signature operations. 
 | 
static LibRequestMessage | 
getInstance(org.w3c.dom.Element element)
Instantiates a concrete  
LibRequestMessage subclass implementation to wrap the given Element. | 
java.lang.String | 
getProviderID()
Returns the provider's URI based ideitifier contained in the ProviderID child element of this  
LibRequestMessage, or null if no ProviderID element is present. | 
void | 
setProviderID(java.lang.String providerID)
Sets the value of the ProviderID child element in this element. 
 | 
addRespondWith, addRespondWithValue, getIssueInstant, getLocalNamesPrecedeDSig, getNSURIsPrecedeDSig, getRequestID, getRespondWiths, getRespondWithValues, setIssueInstant, setRequestIDclearSignature, getInstance, getMajorVersion, getMinorVersion, getSignature, isSigned, setVersion, sign, sign, verify, verifyaddNSPrefixAttr, 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, setDefaultNSPrefixappendChild, 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
protected LibRequestMessage(org.w3c.dom.Element element)
                     throws org.w3c.dom.DOMException
LibRequestMessage instance from the given Element node.element - A Liberty request or notification XML element.org.w3c.dom.DOMException
protected LibRequestMessage(org.w3c.dom.Element element,
                 java.lang.String systemId)
                     throws org.w3c.dom.DOMException
LibRequestMessage instance from the given Element node.element - A Liberty request or notification XML element.systemId - The URI string system ID for the LibRequestMessage.org.w3c.dom.DOMException
protected LibRequestMessage(org.w3c.dom.Document owner,
                 java.lang.String nsURI,
                 java.lang.String localName)
                     throws org.w3c.dom.DOMException
LibRequestMessage instance.owner - The owner document of the new LibRequestMessage.nsURI - The namespace URI in which the new LibRequestMessage is to be created.localName - The localName of the element represented by the class that extends this abstract class.org.w3c.dom.DOMException
protected LibRequestMessage(org.w3c.dom.Document owner,
                 java.lang.String nsURI,
                 java.lang.String localName,
                 java.lang.String requestId,
                 java.util.Date issueInstant)
                     throws org.w3c.dom.DOMException
LibRequestMessage instance.owner - The owner document of the new LibRequestMessage.nsURI - The namespace URI in which the new LibRequestMessage is to be created.localName - The localName of the element represented by the class that extends this abstract class.requestID - The RequestID attribute.issueInstant - The IssueInstant attribute.org.w3c.dom.DOMExceptionpublic static LibRequestMessage getInstance(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
LibRequestMessage subclass implementation to wrap the given Element.element - An org.w3c.dom.Element representing an extension of saml:RequestAbstractType in the Liberty namespace.LibRequestMessage, or null if no appropriate implementation class could be found.org.w3c.dom.DOMException
public void setProviderID(java.lang.String providerID)
                   throws org.w3c.dom.DOMException
providerID - The URI-based identifier of the provider.org.w3c.dom.DOMExceptionpublic java.lang.String getProviderID()
LibRequestMessage, or null if no ProviderID element is present.
public oracle.security.xmlsec.dsig.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 ds: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 oracle.security.xmlsec.saml.SAMLMessagesignatureMethod - The URI identifying the signature algorithm to be used.c14nMethod - The URI identifying the canonicalization algorithm to be used.XSSignature, XSKeyInfo, XMLURI
public oracle.security.xmlsec.dsig.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 ds: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 oracle.security.xmlsec.saml.SAMLMessagesignatureMethod - 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, XMLURIprotected java.lang.String getID()
oracle.security.xmlsec.saml.SAMLMessagegetID in class oracle.security.xmlsec.samlp.RequestTypeprotected abstract java.lang.String[] getChildElementsNSURIs()
protected abstract java.lang.String[] getChildElementsLocalNames()
protected int getChildElementPosition(java.lang.String nsURI,
                          java.lang.String localName)
                               throws org.w3c.dom.DOMException
org.w3c.dom.DOMException