public class XSKeyInfo extends XMLElement implements Referable
XSSignature.createKeyInfo(), KeyInfoData| Constructor and Description | 
|---|
XSKeyInfo(org.w3c.dom.Document owner)
Creates a new  
XSKeyInfo instance. | 
XSKeyInfo(org.w3c.dom.Document owner, java.lang.String id)
Creates a new  
XSKeyInfo instance. | 
XSKeyInfo(org.w3c.dom.Element element)
Creates a new  
XSKeyInfo instance from the given Element node. | 
XSKeyInfo(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new  
XSKeyInfo instance from the given Element node. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addKeyInfoData(XMLElement keyInfoData)
Adds a  
KeyInfoData instance to this KeyInfo. | 
KeyName | 
createKeyName(java.lang.String name)
Creates a new KeyName element containing the given key name string in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
KeyValue | 
createKeyValue()
Creates a new KeyValue element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
KeyValue | 
createKeyValue(java.security.PublicKey publicKey)
Creates a new KeyValue element containing the given public key in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
MgmtData | 
createMgmtData()
Creates a new MgmtData element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
MgmtData | 
createMgmtData(java.lang.String data)
Creates a new MgmtData element containing the given data string in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
PGPData | 
createPGPData()
Creates a new PGPData element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
RetrievalMethod | 
createRetrievalMethod()
Creates a new RetrievalMethod element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
RetrievalMethod | 
createRetrievalMethod(java.lang.String uri, java.lang.String type)
Creates a new RetrievalMethod element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
SPKIData | 
createSPKIData()
Creates a new SPKIData element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
SPKIData | 
createSPKIData(byte[] sExp)
Creates a new SPKIData element containing the given S-expression in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
X509Data | 
createX509Data()
Creates a new X509Data element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
X509Data | 
createX509Data(java.security.cert.X509Certificate cert)
Creates a new X509Data element in this KeyInfo's document, but does not append it to the KeyInfo element. 
 | 
java.lang.String | 
getId()
Returns the value of the Id attribute of this KeyInfo. 
 | 
java.util.Vector | 
getKeyInfoData()
Returns a list of all the KeyInfoData elements contained in this  
XSKeyInfo. | 
java.util.Vector | 
getKeyNames()
Returns a list of all the KeyName elements contained in this  
XSKeyInfo. | 
java.util.Vector | 
getKeyValues()
Returns a list of all the KeyValue elements contained in this  
XSKeyInfo. | 
java.util.Vector | 
getMgmtData()
Returns a list of all the MgmtData elements contained in this  
XSKeyInfo. | 
java.util.Vector | 
getPGPData()
Returns a list of all the PGPData elements contained in this  
XSKeyInfo. | 
java.util.Vector | 
getRetrievalMethods()
Returns a list of all the RetrievalMethod elements contained in this  
XSKeyInfo. | 
java.util.Vector | 
getSPKIData()
Returns a list of all the SPKIData elements contained in this  
XSKeyInfo. | 
java.lang.String | 
getType()
Returns  
null, as no type URI is defined for KeyInfo in the XML-DSIG space. | 
java.util.Vector | 
getX509Data()
Returns a list of all the X509Data elements contained in this  
XSKeyInfo. | 
void | 
setId(java.lang.String id)
Sets the Id attribute of this KeyInfo. 
 | 
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 XSKeyInfo(org.w3c.dom.Element element)
          throws org.w3c.dom.DOMException
XSKeyInfo instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG KeyInfo schema.org.w3c.dom.DOMException
public XSKeyInfo(org.w3c.dom.Element element,
                 java.lang.String systemId)
          throws org.w3c.dom.DOMException
XSKeyInfo instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG KeyInfo schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)
public XSKeyInfo(org.w3c.dom.Document owner)
          throws org.w3c.dom.DOMException
XSKeyInfo instance.owner - The owner document of the new XSKeyInfo.org.w3c.dom.DOMException
public XSKeyInfo(org.w3c.dom.Document owner,
                 java.lang.String id)
          throws org.w3c.dom.DOMException
XSKeyInfo instance.owner - The owner document of the new XSKeyInfo.id - An optional string ID name for this KeyInfo structure.org.w3c.dom.DOMExceptionpublic KeyName createKeyName(java.lang.String name) throws org.w3c.dom.DOMException
name - A string key name.KeyName.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public KeyValue createKeyValue() throws org.w3c.dom.DOMException
KeyValue.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public KeyValue createKeyValue(java.security.PublicKey publicKey) throws org.w3c.dom.DOMException, java.security.InvalidKeyException
publicKey - A oracle.security.crypto.core.PublicKey.KeyValue.oracle.security.crypto.core.InvalidKeyException - If the given public key is not supported by the KeyValue implementation.org.w3c.dom.DOMExceptionjava.security.InvalidKeyExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public X509Data createX509Data() throws org.w3c.dom.DOMException
X509Data.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public X509Data createX509Data(java.security.cert.X509Certificate cert) throws org.w3c.dom.DOMException
cert - A oracle.security.crypto.cert.X509Certificate object. In addition to the certificate, elements are added to the X509Data containing the issuer name and serial number; the subject name; and the subject key ID if that extension is present.X509Data.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public MgmtData createMgmtData() throws org.w3c.dom.DOMException
MgmtData.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public MgmtData createMgmtData(java.lang.String data) throws org.w3c.dom.DOMException
data - A data string.MgmtData.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public PGPData createPGPData() throws org.w3c.dom.DOMException
PGPData.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public SPKIData createSPKIData() throws org.w3c.dom.DOMException
SPKIData.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public SPKIData createSPKIData(byte[] sExp) throws org.w3c.dom.DOMException
sExp - The bytes of a SPKI S-expression.SPKIData.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public RetrievalMethod createRetrievalMethod() throws org.w3c.dom.DOMException
RetrievalMethod.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public RetrievalMethod createRetrievalMethod(java.lang.String uri, java.lang.String type) throws org.w3c.dom.DOMException
uri - A URI identifying the KeyInfo object being referenced.type - An optional URI identifying the type of the referenced KeyInfo object.RetrievalMethod.org.w3c.dom.DOMExceptionaddKeyInfoData(oracle.security.xmlsec.util.XMLElement)public void addKeyInfoData(XMLElement keyInfoData) throws org.w3c.dom.DOMException
KeyInfoData instance to this KeyInfo. Instances of more than one concrete KeyInfoData subclass may be added, but all must refer to the same key material.keyInfoData - A XMLElement that implements the KeyInfoData interface.java.lang.IllegalArgumentException - If keyInfoData does not implement the KeyInfoData interface.org.w3c.dom.DOMExceptionpublic java.util.Vector getKeyInfoData()
XSKeyInfo.Vector of XMLElements that implement the KeyInfoData interface.public java.util.Vector getKeyNames()
XSKeyInfo.Vector of KeyNames.public java.util.Vector getKeyValues()
XSKeyInfo.Vector of KeyValues.public java.util.Vector getX509Data()
XSKeyInfo.Vector of X509Datas.public java.util.Vector getMgmtData()
XSKeyInfo.Vector of MgmtDatas.public java.util.Vector getPGPData()
XSKeyInfo.Vector of PGPDatas.public java.util.Vector getSPKIData()
XSKeyInfo.Vector of SPKIDatas.public java.util.Vector getRetrievalMethods()
XSKeyInfo.Vector of RetrievalMethods.
public void setId(java.lang.String id)
           throws org.w3c.dom.DOMException
public java.lang.String getId()