public interface SignatureFactory extends Serializable
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
decodePublicKey(byte[] me)
The public key is sent over the wire, thus the decoding of it needs
special handling.
|
PublicKey |
decodePublicKey(io.netty.buffer.ByteBuf buf) |
void |
encodePublicKey(PublicKey publicKey,
io.netty.buffer.ByteBuf buf) |
SignatureCodec |
sign(PrivateKey private1,
ByteBuffer[] byteBuffers) |
SignatureCodec |
signatureCodec(io.netty.buffer.ByteBuf buf)
Get the signature codec and read the signature directly from the buffer
|
int |
signatureSize() |
Signature |
update(PublicKey publicKey,
ByteBuffer[] byteBuffers) |
boolean |
verify(PublicKey public1,
ByteBuffer[] byteBuffers,
SignatureCodec signature) |
PublicKey decodePublicKey(byte[] me)
me - The byte array that contains the public keyPublicKey decodePublicKey(io.netty.buffer.ByteBuf buf)
void encodePublicKey(PublicKey publicKey, io.netty.buffer.ByteBuf buf)
SignatureCodec sign(PrivateKey private1, ByteBuffer[] byteBuffers) throws InvalidKeyException, SignatureException, IOException
boolean verify(PublicKey public1, ByteBuffer[] byteBuffers, SignatureCodec signature) throws SignatureException, InvalidKeyException
Signature update(PublicKey publicKey, ByteBuffer[] byteBuffers) throws InvalidKeyException, SignatureException
SignatureCodec signatureCodec(io.netty.buffer.ByteBuf buf)
buf - the buffer containing the signature at the reader indexIOException - if the signature cannot be read from the bufferint signatureSize()
Copyright © 2015. All rights reserved.