public class KeyDescriptor
extends oracle.security.xmlsec.util.XMLElement
KeyDescriptor metadata element.| Modifier and Type | Class and Description |
|---|---|
static class |
KeyDescriptor.KeyType
Represents the key usage.
|
| Modifier | Constructor and Description |
|---|---|
|
KeyDescriptor(org.w3c.dom.Document owner)
Creates a new
KeyDescriptor instance. |
protected |
KeyDescriptor(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName)
Creates a new
KeyDescriptor instance. |
|
KeyDescriptor(org.w3c.dom.Element element)
Creates a new
KeyDescriptor instance from the given Element node. |
|
KeyDescriptor(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
KeyDescriptor instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEncryptionMethod(EncryptionMethod encMethod)
Adds an encryption method.
|
java.util.List |
getEncryptionMethods()
Returns the list of encryption methods.
|
oracle.security.xmlsec.dsig.XSKeyInfo |
getKeyInfo()
Returns the key information.
|
KeyDescriptor.KeyType |
getUse()
Returns the key usage.
|
void |
setKeyInfo(oracle.security.xmlsec.dsig.XSKeyInfo ki)
Adds key information.
|
void |
setUse(KeyDescriptor.KeyType use)
Sets the key usage.
|
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, 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 KeyDescriptor(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
KeyDescriptor instance from the given Element node.element - An KeyDescriptor element.org.w3c.dom.DOMException
public KeyDescriptor(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
KeyDescriptor instance from the given Element node.element - An KeyDescriptor element.systemId - The URI string system ID for the KeyDescriptor.org.w3c.dom.DOMException
public KeyDescriptor(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
KeyDescriptor instance.owner - The owner document of the new KeyDescriptor.org.w3c.dom.DOMException
protected KeyDescriptor(org.w3c.dom.Document owner,
java.lang.String nsURI,
java.lang.String localName)
throws org.w3c.dom.DOMException
KeyDescriptor instance. This constructor is for use in subclass for extension of the KeyDescriptor element.owner - The owner document of the new KeyDescriptor.nsURI - The namespace URI in which the new KeyDescriptor is to be created.localName - The localName of the element represented by the class that extends this class.org.w3c.dom.DOMExceptionpublic void setUse(KeyDescriptor.KeyType use)
use - A String.public KeyDescriptor.KeyType getUse()
null if not found.public void setKeyInfo(oracle.security.xmlsec.dsig.XSKeyInfo ki)
ki - The KeyInfo Node.public oracle.security.xmlsec.dsig.XSKeyInfo getKeyInfo()
KeyInfo object or null if none was found.public void addEncryptionMethod(EncryptionMethod encMethod)
encMethod - A EncryptionMethod object.public java.util.List getEncryptionMethods()
List of EncryptionMethod objects or null if none were found.