|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-05 |
||||||||
| 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.keys.DHKeyValue
public class DHKeyValue
XML Encryption KeyValue class for Diffie-Hellman public keys.
The DH key values used in a DHKeyValue object are:
P, Q, Generator: The DH parameters P, Q and Generator are optional, but they must either all be present or all be absent.Public: The DH public key value is required.seed, pgenCounter: The DH prime generation seed bytes and counter are optional, but they must either both be present or both be absent.| Field Summary |
|---|
| Fields inherited from class oracle.security.xmlsec.util.XMLNode |
|---|
node, systemId |
| Constructor Summary | |
|---|---|
DHKeyValue(org.w3c.dom.Element element)Creates a new DHKeyValue instance from the given Element node. |
|
DHKeyValue(org.w3c.dom.Element element, java.lang.String systemId)Creates a new DHKeyValue instance from the given Element node. |
|
| Method Summary | |
|---|---|
java.math.BigInteger |
getGenerator()Returns the Generator of this DHKeyValue. |
java.math.BigInteger |
getP()Returns the prime P of this DHKeyValue. |
java.math.BigInteger |
getPGenCounter()Returns the validation parameter pgenCounter value of this DHKeyValue. |
java.math.BigInteger |
getPublic()Returns the public key value of this DHKeyValue. |
java.security.PublicKey |
getPublicKey()Returns a oracle.security.crypto.core.PublicKey. |
java.math.BigInteger |
getQ()Returns the prime Q of this DHKeyValue. |
byte[] |
getSeed()Returns the validation parameter seed bytes of this DHKeyValue. |
java.lang.String |
getType()Returns a URI identifying the type of KeyValue. |
void |
setDHParams(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)Sets the DH parameters P, Q and Generator. |
void |
setPublic(java.math.BigInteger y)Sets the DH public key value. |
void |
setValidationParams(byte[] seed, java.math.BigInteger counter)Sets the DH validation parameters "seed" and "pgenCounter". |
| 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 DHKeyValue(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
DHKeyValue instance from the given Element node.
element - An Element node in the XML document that conforms to the DHKeyValue schema.org.w3c.dom.DOMException
public DHKeyValue(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
DHKeyValue instance from the given Element node.
element - An Element node in the XML document that conforms to the DHKeyValue schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)| Method Detail |
|---|
public void setDHParams(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
throws org.w3c.dom.DOMException
p - The prime P.q - The prime Q which is a divisor of P-1.g - The Generator of order q in GF(p).org.w3c.dom.DOMExceptionpublic java.math.BigInteger getP()
DHKeyValue.public java.math.BigInteger getQ()
DHKeyValue.public java.math.BigInteger getGenerator()
DHKeyValue.
public void setPublic(java.math.BigInteger y)
throws org.w3c.dom.DOMException
y - The DH public key value.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getPublic()
DHKeyValue.
public void setValidationParams(byte[] seed,
java.math.BigInteger counter)
throws org.w3c.dom.DOMException
DHKeyValue instance.seed - The bytes of the validation parameter "seed".counter - The validation parameter "pgenCounter".org.w3c.dom.DOMException
public byte[] getSeed()
throws org.w3c.dom.DOMException
DHKeyValue.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getPGenCounter()
DHKeyValue.public java.security.PublicKey getPublicKey()
KeyValueDataoracle.security.crypto.core.PublicKey.getPublicKey in interface KeyValueDatapublic java.lang.String getType()
KeyValueDataInterface XMLURI contains the KeyInfo data type URIs for public key value elements defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValueXMLURI.obj_DSAKeyValueXMLURI.obj_RSAKeyValuegetType in interface KeyValueData
|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||