XECDHECryptography instead@Deprecated public final class ECDHECryptography extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ECDHECryptography.SupportedGroup
Deprecated.
The Supported Groups as defined in the official
IANA Transport Layer Security (TLS) Parameters.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER
Deprecated.
|
| Constructor and Description |
|---|
ECDHECryptography(ECParameterSpec params)
Deprecated.
Creates an ephemeral ECDH key pair for a given set of EC domain parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
encodePoint(ECPoint point,
EllipticCurve curve)
Deprecated.
Encodes an EC point according to the X9.62 specification.
|
static ECDHECryptography |
fromNamedCurveId(int supportedGroupId)
Deprecated.
Creates an ephemeral ECDH key pair for a supported group (named curve).
|
SecretKey |
generateSecret(byte[] encodedPoint)
Deprecated.
Called by the server.
|
SecretKey |
generateSecret(PublicKey peerPublicKey)
Deprecated.
Runs the specified key agreement algorithm (ECDH) to generate the
premaster secret.
|
PrivateKey |
getPrivateKey()
Deprecated.
|
ECPublicKey |
getPublicKey()
Deprecated.
|
static byte[] |
trimZeroes(byte[] byeArray)
Deprecated.
Trims the leading zeros.
|
public ECDHECryptography(ECParameterSpec params) throws GeneralSecurityException
params - the domain parameters to create the keys forGeneralSecurityException - if the key pair cannot be created from the
given parameterspublic static ECDHECryptography fromNamedCurveId(int supportedGroupId)
supportedGroupId - the ID of the supported group (named curve) which will be used to create
the keysnull if the group with the given
id is not supported by the JRE's cryptography provider(s)public PrivateKey getPrivateKey()
public ECPublicKey getPublicKey()
public SecretKey generateSecret(byte[] encodedPoint)
encodedPoint - the client's public key (encoded)public SecretKey generateSecret(PublicKey peerPublicKey)
peerPublicKey - the peer's ephemeral public key.public static byte[] trimZeroes(byte[] byeArray)
byeArray - the byte array with possible leading zeros.public static byte[] encodePoint(ECPoint point, EllipticCurve curve)
point - the EC point to be encoded.curve - the elliptic curve the point lies on.Copyright © 2023 Eclipse Foundation. All rights reserved.