|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.dsig.XSKeyInfo
public class XSKeyInfo
A XML-DSIG KeyInfo element that may contain one or more instances of specific KeyInfo child data elements.
XSSignature.createKeyInfo()
, KeyInfoData
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
appendChild, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.DOMException
XMLNode.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.DOMException
Method Detail |
---|
public KeyName createKeyName(java.lang.String name) throws org.w3c.dom.DOMException
name
- A string key name.KeyName
.org.w3c.dom.DOMException
addKeyInfoData(oracle.security.xmlsec.util.XMLElement)
public KeyValue createKeyValue() throws org.w3c.dom.DOMException
KeyValue
.org.w3c.dom.DOMException
addKeyInfoData(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.DOMException
java.security.InvalidKeyException
addKeyInfoData(oracle.security.xmlsec.util.XMLElement)
public X509Data createX509Data() throws org.w3c.dom.DOMException
X509Data
.org.w3c.dom.DOMException
addKeyInfoData(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.DOMException
addKeyInfoData(oracle.security.xmlsec.util.XMLElement)
public MgmtData createMgmtData() throws org.w3c.dom.DOMException
MgmtData
.org.w3c.dom.DOMException
addKeyInfoData(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.DOMException
addKeyInfoData(oracle.security.xmlsec.util.XMLElement)
public PGPData createPGPData() throws org.w3c.dom.DOMException
PGPData
.org.w3c.dom.DOMException
addKeyInfoData(oracle.security.xmlsec.util.XMLElement)
public SPKIData createSPKIData() throws org.w3c.dom.DOMException
SPKIData
.org.w3c.dom.DOMException
addKeyInfoData(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.DOMException
addKeyInfoData(oracle.security.xmlsec.util.XMLElement)
public RetrievalMethod createRetrievalMethod() throws org.w3c.dom.DOMException
RetrievalMethod
.org.w3c.dom.DOMException
addKeyInfoData(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.DOMException
addKeyInfoData(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.DOMException
public java.util.Vector getKeyInfoData()
XSKeyInfo
.Vector
of XMLElement
s that implement the KeyInfoData
interface.public java.util.Vector getKeyNames()
XSKeyInfo
.Vector
of KeyName
s.public java.util.Vector getKeyValues()
XSKeyInfo
.Vector
of KeyValue
s.public java.util.Vector getX509Data()
XSKeyInfo
.Vector
of X509Data
s.public java.util.Vector getMgmtData()
XSKeyInfo
.Vector
of MgmtData
s.public java.util.Vector getPGPData()
XSKeyInfo
.Vector
of PGPData
s.public java.util.Vector getSPKIData()
XSKeyInfo
.Vector
of SPKIData
s.public java.util.Vector getRetrievalMethods()
XSKeyInfo
.Vector
of RetrievalMethod
s.public void setId(java.lang.String id) throws org.w3c.dom.DOMException
setId
in interface Referable
id
- The ID name of this KeyInfo.org.w3c.dom.DOMException
public java.lang.String getId()
getId
in interface Referable
null
if the attribute is missing.public java.lang.String getType()
null
, as no type URI is defined for KeyInfo in the XML-DSIG space.getType
in interface Referable
null
if none is defined.
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |