public class EncryptedAssertion extends EncryptedElement
| Constructor and Description | 
|---|
EncryptedAssertion(org.w3c.dom.Document owner)
Creates a new  
EncryptedAssertion instance. | 
EncryptedAssertion(org.w3c.dom.Element element)
Creates a new  
EncryptedAssertion instance from the given Element node. | 
EncryptedAssertion(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new  
EncryptedAssertion instance from the given Element node. | 
| Modifier and Type | Method and Description | 
|---|---|
XEEncryptedData | 
encryptAssertion(Assertion assertion, java.lang.String dataEncAlg, javax.crypto.SecretKey dataEncKey, java.lang.String dataEncKeyName)
Encrypt the  
Assertion Element with the given algorithm and content encryption key, where the key is identified by a key name. | 
XEEncryptedData | 
encryptAssertion(Assertion assertion, java.lang.String dataEncAlg, javax.crypto.SecretKey dataEncKey, java.lang.String keyEncAlg, java.security.Key keyEncKey, java.lang.String keyEncKeyName)
Encrypt XML data of type XML Element or XML Element Content with the given algorithm and key, where the data encryption key is encrypted with the given key encryption key. 
 | 
addEncryptedKey, decryptElement, encryptElement, encryptElement, getEncryptedData, getEncryptedKeys, removeChildren, setEncryptedDataaddNSPrefixAttr, 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 EncryptedAssertion(org.w3c.dom.Element element)
                   throws org.w3c.dom.DOMException
EncryptedAssertion instance from the given Element node.element - A EncryptedAssertion element.org.w3c.dom.DOMException
public EncryptedAssertion(org.w3c.dom.Element element,
                          java.lang.String systemId)
                   throws org.w3c.dom.DOMException
EncryptedAssertion instance from the given Element node.element - A EncryptedAssertion element.systemId - The URI string system ID for the EncryptedAssertion.org.w3c.dom.DOMException
public EncryptedAssertion(org.w3c.dom.Document owner)
                   throws org.w3c.dom.DOMException
EncryptedAssertion instance.owner - The owner document of the new EncryptedAssertion.org.w3c.dom.DOMExceptionpublic XEEncryptedData encryptAssertion(Assertion assertion, java.lang.String dataEncAlg, javax.crypto.SecretKey dataEncKey, java.lang.String dataEncKeyName) throws XEException
Assertion Element with the given algorithm and content encryption key, where the key is identified by a key name.
The supported data encrytion algorithms are:
Triple DESAES-128AES-192AES-256assertion - The assertion to encrypt.dataEncAlg - The URI identifying the data encryption algorithm.dataEncKey - The data encryption key. If null, a encryption key will be randomly generated.dataEncKeyName - The name identifying the data encryption key, optional.XEEncryptedData which replaces the nameID element.XEException - If an error occurs in encrypting the data.public XEEncryptedData encryptAssertion(Assertion assertion, java.lang.String dataEncAlg, javax.crypto.SecretKey dataEncKey, java.lang.String keyEncAlg, java.security.Key keyEncKey, java.lang.String keyEncKeyName) throws XEException
The supported data encrytion algorithms are:
Triple DESAES-128AES-192AES-256The supported key encrytion algorithms are:
RSA v1.5RSA-OAEP with MGF1TripleDES Key WrapAES-128 Key WrapAES-192 Key WrapAES-256 Key WrapFor RSA-OAEP, the following parameters are used:
SHA-1assertion - The assertion to encrypt.dataEncAlg - The URI identifying the data encryption algorithm.dataEncKey - The data encryption key. If null, a encryption key will be randomly generated.keyEncAlg - The URI identifying the key encryption algorithm.keyEncKey - The key encryption key.keyEncKeyName - The name identifying the key encryption key, optional.XEEncryptedData which replaces the nameID element.XEException - If an error occurs in encrypting the data.