public class DSAKeyValue extends XMLElement implements KeyValueData
The DSA key values used in a DSAKeyValue object are:
P, Q: The DSA parameters P and Q are optional, but they must either both be present or both be absent.G: The DSA parameter G is optional.Y: The DSA public key value Y = G^X % P is required.J: The DSA parameter J = (P - 1) / Q is optional, and is included solely for efficiency. If P and Q are provided in the given DSAPublicKey, J will be calculated and included.seed, pgenCounter: The DSA prime generation seed bytes and counter are optional, but they must either both be present or both be absent.| Constructor and Description |
|---|
DSAKeyValue(org.w3c.dom.Element element)
Creates a new
DSAKeyValue instance from the given Element node. |
DSAKeyValue(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
DSAKeyValue instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getG()
Returns the parameter G of this
DSAKeyValue. |
java.math.BigInteger |
getJ()
Returns the parameter J of this
DSAKeyValue. |
java.math.BigInteger |
getP()
Returns the prime modulus P of this
DSAKeyValue. |
java.math.BigInteger |
getPGenCounter()
Returns the prime generation counter of
DSAKeyValue. |
byte[] |
getPGenSeed()
Returns the prime generation seed bytes of this
DSAKeyValue. |
java.security.PublicKey |
getPublicKey()
Returns a
oracle.security.crypto.core.PublicKey. |
java.math.BigInteger |
getQ()
Returns the parameter Q of this
DSAKeyValue. |
java.lang.String |
getType()
Returns a URI identifying the type of KeyValue.
|
java.math.BigInteger |
getY()
Returns the key value Y of this
DSAKeyValue. |
void |
setG(java.math.BigInteger g)
Sets the DSA parameter G.
|
void |
setJ(java.math.BigInteger j)
Sets the DSA parameter J = (P - 1) / Q.
|
void |
setPQ(java.math.BigInteger p, java.math.BigInteger q)
Sets the DSA parameters P and Q.
|
void |
setPrimeGen(byte[] seed, java.math.BigInteger counter)
Sets the DSA prime generation Seed and PgenCounter parameters.
|
void |
setY(java.math.BigInteger y)
Sets the DSA key value Y = G^X % P.
|
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 DSAKeyValue(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
DSAKeyValue instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG DSAKeyValue schema.org.w3c.dom.DOMException
public DSAKeyValue(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
DSAKeyValue instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG DSAKeyValue schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)
public void setPQ(java.math.BigInteger p,
java.math.BigInteger q)
throws org.w3c.dom.DOMException
DSAKeyValue instance.p - The prime modulus.q - A prime divisor of P-1.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getP()
DSAKeyValue.public java.math.BigInteger getQ()
DSAKeyValue.
public void setG(java.math.BigInteger g)
throws org.w3c.dom.DOMException
g - The DSA parameter G.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getG()
DSAKeyValue.
public void setY(java.math.BigInteger y)
throws org.w3c.dom.DOMException
y - The DSA key value Y.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getY()
DSAKeyValue.
public void setJ(java.math.BigInteger j)
throws org.w3c.dom.DOMException
j - The DSA parameter J.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getJ()
DSAKeyValue.
public void setPrimeGen(byte[] seed,
java.math.BigInteger counter)
throws org.w3c.dom.DOMException
DSAKeyValue instance.seed - The bytes of the prime generation seed.counter - The prime generation counter.org.w3c.dom.DOMException
public byte[] getPGenSeed()
throws org.w3c.dom.DOMException
DSAKeyValue.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getPGenCounter()
DSAKeyValue.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