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 privateKey,
io.netty.buffer.ByteBuf buf) |
SignatureCodec |
signatureCodec() |
Signature |
update(PublicKey publicKey,
ByteBuffer[] byteBuffers) |
boolean |
verify(PublicKey publicKey,
io.netty.buffer.ByteBuf buf,
SignatureCodec signatureEncoded) |
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 privateKey, io.netty.buffer.ByteBuf buf) throws InvalidKeyException, SignatureException, IOException
boolean verify(PublicKey publicKey, io.netty.buffer.ByteBuf buf, SignatureCodec signatureEncoded) throws SignatureException, InvalidKeyException, IOException
Signature update(PublicKey publicKey, ByteBuffer[] byteBuffers) throws InvalidKeyException, SignatureException
SignatureCodec signatureCodec()
Copyright © 2014. All rights reserved.