public class RSASignatureCodec extends Object implements SignatureCodec
| Modifier and Type | Field and Description |
|---|---|
static int |
SIGNATURE_SIZE |
| Constructor and Description |
|---|
RSASignatureCodec(byte[] encodedData)
Create a signature codec using an already existing signature (encoded)
|
RSASignatureCodec(io.netty.buffer.ByteBuf buf)
Create a signature codec from a buffer
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode() |
boolean |
equals(Object obj) |
int |
hashCode() |
int |
signatureSize() |
SignatureCodec |
write(io.netty.buffer.ByteBuf buf)
Write the signature data into the givne buffer
|
public static final int SIGNATURE_SIZE
public RSASignatureCodec(byte[] encodedData)
throws IOException
encodedData - the encoded signatureIOExceptionpublic RSASignatureCodec(io.netty.buffer.ByteBuf buf)
buf - the buffer containing the signature at its reader indexpublic byte[] encode()
encode in interface SignatureCodecpublic SignatureCodec write(io.netty.buffer.ByteBuf buf)
SignatureCodecwrite in interface SignatureCodecbuf - the buffer to write the signature intopublic int signatureSize()
signatureSize in interface SignatureCodecCopyright © 2015. All rights reserved.