public class DHKeyValue extends XMLElement implements KeyValueData
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.| Constructor and Description | 
|---|
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. | 
| Modifier and Type | Method and Description | 
|---|---|
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". 
 | 
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 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)
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