public class NOPSigningHandler extends Object implements SigningHandler
| Constructor and Description |
|---|
NOPSigningHandler() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
sign(JwsAlgorithm algorithm,
byte[] data)
Returns an empty byte array.
|
byte[] |
sign(JwsAlgorithm algorithm,
String data)
Simply returns a byte array of a UTF-8 empty string.
|
boolean |
verify(JwsAlgorithm algorithm,
byte[] data,
byte[] signature)
Verifies that the signature length is zero.
|
public byte[] sign(JwsAlgorithm algorithm, String data)
sign in interface SigningHandleralgorithm - The JwsAlgorithm defining the Java Cryptographic algorithm.data - The data to be signed.public byte[] sign(JwsAlgorithm algorithm, byte[] data)
sign in interface SigningHandleralgorithm - the JWS signature algorithm to use.data - the raw data to sign.public boolean verify(JwsAlgorithm algorithm, byte[] data, byte[] signature)
verify in interface SigningHandleralgorithm - The JwsAlgorithm defining the JavaCryptographic algorithm.data - The data that was signed.signature - The signature of the data.true if the signature is a valid signature of the data.Copyright © 2025 Open Identity Platform Community. All rights reserved.