public class DHKeyValueImpl extends KeyValueType
DHKeyValue that supports the DOM XML
representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected BigInteger |
generator_
The generator.
|
protected int |
pGenCounter_
The p generator counter.
|
protected BigInteger |
primeP_
The prime p.
|
protected BigInteger |
primeQ_
The prime q.
|
protected BigInteger |
publicValue_
The public value.
|
protected byte[] |
seed_
The seed.
|
publicKey_implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
DHKeyValueImpl(DHPublicKey dhPublicKey)
Creates a new instance of this
DHKeyValueImpl with the
specified DH public key. |
DHKeyValueImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
DHKeyValueImpl with the
specified context and node to unmarshal from. |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getGenerator() |
String |
getLocalName()
Returns the local name of the represented XML element.
|
int |
getPGenCounter() |
BigInteger |
getPrimeP() |
BigInteger |
getPrimeQ() |
BigInteger |
getPublicValue() |
byte[] |
getSeed() |
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshal the DOM node representation of this
DOMStructure and
all its child DOMStructures. |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals
DOMStructures from the given nodes. |
getPublicKeygetNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNodeprotected BigInteger primeP_
protected BigInteger primeQ_
protected BigInteger publicValue_
protected BigInteger generator_
protected byte[] seed_
protected int pGenCounter_
public DHKeyValueImpl(DOMCryptoContext context, Node node) throws MarshalException
DHKeyValueImpl with the
specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic DHKeyValueImpl(DHPublicKey dhPublicKey)
DHKeyValueImpl with the
specified DH public key.dhPublicKey - the DH public keyNullPointerException - if dhPublicKey is nullpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public Node marshal(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
DOMStructureDOMStructure and
all its child DOMStructures.
marshal in class DOMStructurecontext - the DOMMarshalContext holding context information about
the marshaling of this DOMStructureparent - where to place the marshalled nodenextSibling - before wich to place the marshalled nodeDOMStrucuture and
all its child DOMStructuruesMarshalException - if the marshaling fails for any reasonDOMStructure.marshal(DOMCryptoContext, Node, Node)protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
DOMStructureDOMStructures from the given nodes.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
This method calls DOMStructure.getInstance(Node, DOMCryptoContext) for every
Element in the list of nodes. If
DOMStructure.getInstance(Node, DOMCryptoContext) returns a
DOMStructure DOMStructure.putChildStructure(DOMStructure) is
called with the returned DOMStructure as parameter.
unmarshalStructures in class DOMStructurenodes - the nodes to unmarshal fromcontext - the marshal contextMarshalException - if an exception occurs during marshalingDOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)public BigInteger getGenerator()
public int getPGenCounter()
public BigInteger getPrimeP()
public BigInteger getPrimeQ()
public BigInteger getPublicValue()
public byte[] getSeed()
© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC