public class RSAPSSSignatureRawCodec extends java.lang.Object implements ISignatureCodec
An object that implements the ISignatureCodec
operations for the Raw format to use with RSA-PSS signatures.
RAW_FORMAT| Constructor and Description |
|---|
RSAPSSSignatureRawCodec() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decodeSignature(byte[] k) |
byte[] |
encodeSignature(java.lang.Object signature)
Returns the encoded form of the designated RSA-PSS signature object
according to the Raw format supported by this library.
|
int |
getFormatID() |
public int getFormatID()
getFormatID in interface ISignatureCodecpublic byte[] encodeSignature(java.lang.Object signature)
Returns the encoded form of the designated RSA-PSS signature object according to the Raw format supported by this library.
The Raw format for an RSA-PSS signature, in this implementation, is a byte sequence consisting of the following:
Registry.MAGIC_RAW_RSA_PSS_SIGNATURE,encodeSignature in interface ISignatureCodecsignature - the signature to encode, consisting of the output of the
sign() method of a RSAPSSSignature instance --a byte
array.java.lang.IllegalArgumentException - if the designated signature is not an
RSA-PSS one.public java.lang.Object decodeSignature(byte[] k)
decodeSignature in interface ISignatureCodecCopyright © 2025. All rights reserved.