public class KeyAgreementKey extends CryptoKey
Constructor and Description |
---|
KeyAgreementKey(SecretBuilder builder)
Initialises the key with the given secret data.
|
Modifier and Type | Method and Description |
---|---|
KeyAgreement |
getKeyAgreement()
Obtains a key agreement protocol object for this key.
|
KeyAgreement |
getKeyAgreement(String algorithm)
Obtains a key agreement protocol object initialized with this key.
|
KeyAgreement |
getKeyAgreement(String algorithm,
AlgorithmParameterSpec parameterSpec)
Obtains a key agreement protocol object initialized with this key.
|
allowsAlgorithm, close, export, getCertificate, getCertificate, getKeyAlgorithm, getKeyType, getKeyUsages, getPublicKey, getPublicKey, isExtractable
equals, getExpiryTime, getStableId, hashCode, isExpired, toString
public KeyAgreementKey(SecretBuilder builder) throws NoSuchSecretException
builder
- the builder object.NoSuchSecretException
- if the secret could not be constructed from the builder.public KeyAgreement getKeyAgreement(String algorithm, AlgorithmParameterSpec parameterSpec)
algorithm
- the key agreement algorithm, for instance "ECDH" for Elliptic Curve Diffie-Hellman.parameterSpec
- the algorithm parameters.public KeyAgreement getKeyAgreement(String algorithm)
algorithm
- the key agreement algorithm, for instance "ECDH" for Elliptic Curve Diffie-Hellman.public KeyAgreement getKeyAgreement()
Copyright © 2010-2018, ForgeRock All Rights Reserved.