public class SigningManager extends Object
For details of all supported signing algorithms see JwsAlgorithm
Constructor and Description |
---|
SigningManager() |
Modifier and Type | Method and Description |
---|---|
SigningHandler |
newEcdsaSigningHandler(ECPrivateKey key)
Constructs a new handler for signing ES256 signatures.
|
SigningHandler |
newEcdsaVerificationHandler(ECPublicKey key)
Constructs a new handler for verifying ES256 signatures.
|
SigningHandler |
newHmacSigningHandler(byte[] sharedSecret)
Constructs a new HmacSigningHandler.
|
SigningHandler |
newNopSigningHandler()
Constructs an implementation of the SigningHandler which does not perform
any signing or verifying.
|
SigningHandler |
newRsaSigningHandler(Key key)
Constructs a new RSASigningHandler, with a SignatureUtil instance to
delegate the signing and verifying calls to.
|
public SigningHandler newNopSigningHandler()
public SigningHandler newHmacSigningHandler(byte[] sharedSecret)
sharedSecret
- The shared secret to use to sign the data.public SigningHandler newRsaSigningHandler(Key key)
key
- The key used to sign and verify the signature.public SigningHandler newEcdsaSigningHandler(ECPrivateKey key)
key
- the elliptic curve private key. Should use the required curve for the given signing algorithm
(P-256 for ES256).public SigningHandler newEcdsaVerificationHandler(ECPublicKey key)
key
- the elliptic curve public key. Should use the required curve for the given signing algorithm (P-256
for ES256).Copyright © 2025 Open Identity Platform Community. All rights reserved.