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