public class LibAssertion
extends oracle.security.xmlsec.saml.Assertion
LibAuthenticationStatement, LibSubject| Constructor and Description | 
|---|
LibAssertion(org.w3c.dom.Document owner)
Creates a new  
LibAssertion instance within the specified XML Document. | 
LibAssertion(org.w3c.dom.Document owner, java.lang.String assertionId, java.lang.String issuer, java.util.Date issueInstant, java.lang.String inResponseTo)
Creates a new  
LibAssertion instance within the specified XML Document. | 
LibAssertion(org.w3c.dom.Element element)
Creates a new  
LibAssertion instance from the given Element node. | 
LibAssertion(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new  
LibAssertion 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 assertion, 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 assertion, replacing any existing signature. 
 | 
protected java.lang.String | 
getID()
Returns the ID attribute if any of this SAML message to be used for the signature operations. 
 | 
java.lang.String | 
getInResponseTo()
Returns the value of the InResponseTo attribute in this element, or  
null if the attribute is not specified. | 
java.util.List | 
getLibAuthenticationStatements()
Returns a  
List containing the LibAuthenticationStatement objects present in this LibAssertion structure. | 
void | 
setInResponseTo(java.lang.String value)
Sets the InResponseTo attribute that includes the value from the RequestID attribute of the original AuthnRequest element. 
 | 
addStatement, getAdvice, getAssertionID, getAttributeStatements, getAuthenticationStatements, getAuthorizationDecisionStatements, getConditions, getIssueInstant, getIssuer, getLocalNamesPrecedeDSig, getNSURIsPrecedeDSig, setAdvice, setAssertionID, setConditions, setIssueInstant, setIssuerclearSignature, 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
public LibAssertion(org.w3c.dom.Element element)
             throws org.w3c.dom.DOMException
LibAssertion instance from the given Element node.element - A Liberty Assertion XML element.org.w3c.dom.DOMException
public LibAssertion(org.w3c.dom.Element element,
            java.lang.String systemId)
             throws org.w3c.dom.DOMException
LibAssertion instance from the given Element node.element - A Liberty Assertion XML element.systemId - The URI string system ID for the LibAssertion.org.w3c.dom.DOMException
public LibAssertion(org.w3c.dom.Document owner)
             throws org.w3c.dom.DOMException
LibAssertion instance within the specified XML Document.owner - The owner document of the new Liberty Assertion element.org.w3c.dom.DOMException
public LibAssertion(org.w3c.dom.Document owner,
            java.lang.String assertionId,
            java.lang.String issuer,
            java.util.Date issueInstant,
            java.lang.String inResponseTo)
             throws org.w3c.dom.DOMException
LibAssertion instance within the specified XML Document.owner - The owner document of the new Liberty Assertion element.assertionId - The AssertionID attribute.issuer - The Issuer attribute.issueInstant - The IssueInstant attribute.inResponseTo - The InResponseTo attribute.org.w3c.dom.DOMExceptionpublic java.util.List getLibAuthenticationStatements()
List containing the LibAuthenticationStatement objects present in this LibAssertion structure.List of LibAuthenticationStatement objects or an empty List.public void setInResponseTo(java.lang.String value)
value - The attribute value.public java.lang.String getInResponseTo()
null if the attribute is not specified.
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 Assertion 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:Response, an XPath Filter transform is added to the signature Reference to identify the Assertion 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 assertion 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 assertion 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.saml.Assertion