|
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.DSAKeyValue
public class DSAKeyValue
XML-DSIG KeyValue class for DSA public keys.
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.| Field Summary |
|---|
| Fields inherited from class oracle.security.xmlsec.util.XMLNode |
|---|
node, systemId |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| 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 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)| Method Detail |
|---|
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
|
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 | ||||||||