public class SigningKey extends CryptoKey
Constructor and Description |
---|
SigningKey(SecretBuilder builder)
Initialises the key with the given secret data.
|
Modifier and Type | Method and Description |
---|---|
Signature |
getSignature()
Returns an initialised signature object for a default signature algorithm for this key type.
|
Signature |
getSignature(String algorithm)
Returns s signature object initialised for signing.
|
allowsAlgorithm, close, export, getCertificate, getCertificate, getKeyAlgorithm, getKeyType, getKeyUsages, getPublicKey, getPublicKey, isExtractable
equals, getExpiryTime, getStableId, hashCode, isExpired, toString
public SigningKey(SecretBuilder builder) throws NoSuchSecretException
builder
- the builder object.NoSuchSecretException
- if the secret could not be constructed from the builder.public Signature getSignature(String algorithm)
algorithm
- the signature algorithm.public Signature getSignature()
Copyright © 2010-2018, ForgeRock All Rights Reserved.