DHPublicKey, javax.crypto.KeyAgreement
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private final BigInteger | |
| private byte[] | |
| private final int | |
| private final BigInteger | |
| private static final BigInteger | |
| private static final long | |
| private final BigInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv | DHPrivateKey(BigInteger
the private value x, BigInteger the prime modulus p, BigInteger the base generator g)Make a DH private key out of a private value |
| pack-priv | DHPrivateKey(BigInteger
the private value x, BigInteger the prime modulus p, BigInteger the base generator g, int the private-value length l)Make a DH private key out of a private value |
| pack-priv | DHPrivateKey(byte[]
the encoded key encodedKey)Make a DH private key from its DER encoding (PKCS #8). |
| Modifier and Type | Method and Description |
|---|---|
| private static DHPrivateKey. | |
| 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 | getFormat()
Implements java. Returns the encoding format of this key: "PKCS#8" |
| public DHParameterSpec | Returns: the key parametersOverrides default java. Returns the key parameters. |
| public BigInteger | Returns: the private value,xImplements javax. Returns the private value, |
| public int | |
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| private Object | Returns: the standard KeyRep object to be serializedReplace the DH private key to be serialized. |
| 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 | |
| PKCS8_VERSION | back to summary |
|---|---|
| private static final BigInteger PKCS8_VERSION | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| x | back to summary |
|---|---|
| private final BigInteger x | |
| DHPrivateKey | back to summary |
|---|---|
| pack-priv DHPrivateKey(BigInteger x, BigInteger p, BigInteger g) throws InvalidKeyException Make a DH private key out of a private value
| |
| DHPrivateKey | back to summary |
|---|---|
| pack-priv DHPrivateKey(BigInteger x, BigInteger p, BigInteger g, int l) Make a DH private key out of a private value
| |
| DHPrivateKey | back to summary |
|---|---|
| pack-priv DHPrivateKey(byte[] encodedKey) throws InvalidKeyException Make a DH private key from its DER encoding (PKCS #8).
| |
| decode | back to summary |
|---|---|
| private static DHPrivateKey. | |
| 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: "PKCS#8" | |
| getParams | back to summary |
|---|---|
| public DHParameterSpec getParams() Overrides default java. Returns the key parameters.
| |
| getX | back to summary |
|---|---|
| public BigInteger getX() Implements javax. Returns the private 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
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException Replace the DH private 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 | |
| x | back to summary |
|---|---|
| pack-priv final BigInteger x | |
| DHComponents | back to summary |
|---|---|
| pack-priv DHComponents(BigInteger x, BigInteger p, BigInteger g, int l, byte[] key) | |