| Modifier and Type | Field and Description |
|---|---|
| private final PrivateKey | |
| private final PublicKey | |
| private final PublicKey | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | DHUParameterSpec(PublicKey
our ephemeral public key. ephemeralPublicKey, PrivateKey our ephemeral private key. ephemeralPrivateKey, PublicKey the ephemeral public key sent by the other party. otherPartyEphemeralKey, byte[] key generation material to mix with the calculated secret. userKeyingMaterial)Base constructor for a Diffie-Hellman unified model. |
| public | DHUParameterSpec(PublicKey
our ephemeral public key. ephemeralPublicKey, PrivateKey our ephemeral private key. ephemeralPrivateKey, PublicKey the ephemeral public key sent by the other party. otherPartyEphemeralKey)Base constructor for a Diffie-Hellman unified model without user keying material. |
| public | DHUParameterSpec(KeyPair
our ephemeral public and private key. ephemeralKeyPair, PublicKey the ephemeral public key sent by the other party. otherPartyEphemeralKey, byte[] key generation material to mix with the calculated secret. userKeyingMaterial)Base constructor for a Diffie-Hellman unified model using a key pair. |
| public | DHUParameterSpec(PrivateKey
our ephemeral private key. ephemeralPrivateKey, PublicKey the ephemeral public key sent by the other party. otherPartyEphemeralKey, byte[] key generation material to mix with the calculated secret. userKeyingMaterial)Base constructor for a Diffie-Hellman unified model - calculation of our ephemeral public key is required. |
| public | DHUParameterSpec(KeyPair
our ephemeral public and private key. ephemeralKeyPair, PublicKey the ephemeral public key sent by the other party. otherPartyEphemeralKey)Base constructor for a Diffie-Hellman unified model using a key pair without user keying material. |
| public | DHUParameterSpec(PrivateKey
our ephemeral private key. ephemeralPrivateKey, PublicKey the ephemeral public key sent by the other party. otherPartyEphemeralKey)Base constructor for a Diffie-Hellman unified model - calculation of our ephemeral public key is required and no user keying material is provided. |
| Modifier and Type | Method and Description |
|---|---|
| public PrivateKey | |
| public PublicKey | Returns: our ephemeral public key, can be null.Return our ephemeral public key, null if it was not provided. |
| public PublicKey | Returns: the ephemeral other party public key.Return the ephemeral other party public key. |
| public byte[] | Returns: a copy of the user keying material, can be null.Return a copy of the user keying material, null if none is available. |
| ephemeralPrivateKey | back to summary |
|---|---|
| private final PrivateKey ephemeralPrivateKey | |
| ephemeralPublicKey | back to summary |
|---|---|
| private final PublicKey ephemeralPublicKey | |
| otherPartyEphemeralKey | back to summary |
|---|---|
| private final PublicKey otherPartyEphemeralKey | |
| userKeyingMaterial | back to summary |
|---|---|
| private final byte[] userKeyingMaterial | |
| DHUParameterSpec | back to summary |
|---|---|
| public DHUParameterSpec(PublicKey ephemeralPublicKey, PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey, byte[] userKeyingMaterial) Base constructor for a Diffie-Hellman unified model.
| |
| DHUParameterSpec | back to summary |
|---|---|
| public DHUParameterSpec(PublicKey ephemeralPublicKey, PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey) Base constructor for a Diffie-Hellman unified model without user keying material.
| |
| DHUParameterSpec | back to summary |
|---|---|
| public DHUParameterSpec(KeyPair ephemeralKeyPair, PublicKey otherPartyEphemeralKey, byte[] userKeyingMaterial) Base constructor for a Diffie-Hellman unified model using a key pair. | |
| DHUParameterSpec | back to summary |
|---|---|
| public DHUParameterSpec(PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey, byte[] userKeyingMaterial) Base constructor for a Diffie-Hellman unified model - calculation of our ephemeral public key is required.
| |
| DHUParameterSpec | back to summary |
|---|---|
| public DHUParameterSpec(KeyPair ephemeralKeyPair, PublicKey otherPartyEphemeralKey) Base constructor for a Diffie-Hellman unified model using a key pair without user keying material. | |
| DHUParameterSpec | back to summary |
|---|---|
| public DHUParameterSpec(PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey) Base constructor for a Diffie-Hellman unified model - calculation of our ephemeral public key is required and no user keying material is provided.
| |
| getEphemeralPrivateKey | back to summary |
|---|---|
| public PrivateKey getEphemeralPrivateKey() Return our ephemeral private key.
| |
| getEphemeralPublicKey | back to summary |
|---|---|
| public PublicKey getEphemeralPublicKey() Return our ephemeral public key, null if it was not provided.
| |
| getOtherPartyEphemeralKey | back to summary |
|---|---|
| public PublicKey getOtherPartyEphemeralKey() Return the ephemeral other party public key.
| |
| getUserKeyingMaterial | back to summary |
|---|---|
| public byte[] getUserKeyingMaterial() Return a copy of the user keying material, null if none is available.
| |