DHPrivateKey, javax.crypto.KeyAgreement
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ObjectIdentifier | |
| private byte[] | |
| private final BigInteger | |
| private byte[] | |
| private final int | |
| private final BigInteger | |
| private static final long | |
| private final BigInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv | DHPublicKey(BigInteger
the public value y, BigInteger the prime modulus p, BigInteger the base generator g)Make a DH public key out of a public value |
| pack-priv | DHPublicKey(BigInteger
the public value y, BigInteger the prime modulus p, BigInteger the base generator g, int the private-value length l)Make a DH public key out of a public value |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static DHPublicKey. | |
| private static byte[] | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getAlgorithm()
Implements java. Returns the name of the algorithm associated with this key: "DH" |
| public synchronized byte[] | |
| public String | |
| public DHParameterSpec | Returns: the key parametersOverrides default java. Returns the key parameters. |
| public BigInteger | Returns: the public value,yImplements javax. Returns the public value, |
| public int | |
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| public String | |
| private Object | Returns: the standard KeyRep object to be serializedReplace the DH public key to be serialized. |
| DH_OID | back to summary |
|---|---|
| pack-priv static final ObjectIdentifier DH_OID | |
| encodedKey | back to summary |
|---|---|
| private byte[] encodedKey | |
| g | back to summary |
|---|---|
| private final BigInteger g | |
| key | back to summary |
|---|---|
| private byte[] key | |
| l | back to summary |
|---|---|
| private final int l | |
| p | back to summary |
|---|---|
| private final BigInteger p | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| y | back to summary |
|---|---|
| private final BigInteger y | |
| DHPublicKey | back to summary |
|---|---|
| pack-priv DHPublicKey(BigInteger y, BigInteger p, BigInteger g) throws InvalidKeyException Make a DH public key out of a public value
| |
| DHPublicKey | back to summary |
|---|---|
| pack-priv DHPublicKey(BigInteger y, BigInteger p, BigInteger g, int l) Make a DH public key out of a public value
| |
| DHPublicKey | back to summary |
|---|---|
| pack-priv DHPublicKey(byte[] encodedKey) throws InvalidKeyException Make a DH public key from its DER encoding (X.509).
| |
| decode | back to summary |
|---|---|
| private static DHPublicKey. | |
| encode | back to summary |
|---|---|
| private static byte[] encode(BigInteger p, BigInteger g, int l, byte[] key) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Returns the name of the algorithm associated with this key: "DH" | |
| getEncoded | back to summary |
|---|---|
| public synchronized byte[] getEncoded() Implements java. Get the encoding of the key. | |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Returns the encoding format of this key: "X.509" | |
| getParams | back to summary |
|---|---|
| public DHParameterSpec getParams() Overrides default java. Returns the key parameters.
| |
| getY | back to summary |
|---|---|
| public BigInteger getY() Implements javax. Returns the public value,
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Calculates a hash code value for the object. Objects that are equal will also have the same hashcode.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Restores the state of this object from the stream.
JDK 1.5+ objects use
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException Replace the DH public key to be serialized.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BigInteger | |
| pack-priv final byte[] | |
| pack-priv final int | |
| pack-priv final BigInteger | |
| pack-priv final BigInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| g | back to summary |
|---|---|
| pack-priv final BigInteger g | |
| key | back to summary |
|---|---|
| pack-priv final byte[] key | |
| l | back to summary |
|---|---|
| pack-priv final int l | |
| p | back to summary |
|---|---|
| pack-priv final BigInteger p | |
| y | back to summary |
|---|---|
| pack-priv final BigInteger y | |
| DHComponents | back to summary |
|---|---|
| pack-priv DHComponents(BigInteger y, BigInteger p, BigInteger g, int l, byte[] key) | |