public class OutboundSigverRequest extends AbstractXrootdOutboundRequest
Request to verify signature.
*According to protocol, has the following packet structure:
| kXR_char | streamid[2] |
| kXR_unt16 | kXR_sigver |
| kXR_unt16 | expectrid |
| kXR_char | version |
| kXR_char | flags |
| kXR_unt64 | seqno |
| kXR_char | crypto |
| kXR_char | reserved[3] |
| kXR_int32 | dlen |
| Modifier and Type | Field and Description |
|---|---|
static byte |
kXR_SHA256 |
requestId, signingLevel, streamId| Constructor and Description |
|---|
OutboundSigverRequest(long seqno,
AbstractXrootdOutboundRequest request,
io.netty.channel.ChannelHandlerContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
encrypt(BufferEncrypter encrypter) |
protected void |
getParams(io.netty.buffer.ByteBuf buffer) |
protected int |
getParamsLen() |
getRequestId, getStreamId, isSigned, writeTo, writeToBufferpublic static final byte kXR_SHA256
public OutboundSigverRequest(long seqno,
AbstractXrootdOutboundRequest request,
io.netty.channel.ChannelHandlerContext ctx)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic void encrypt(BufferEncrypter encrypter) throws NoSuchPaddingException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, IllegalBlockSizeException, BadPaddingException, NoSuchProviderException, InvalidKeyException
protected void getParams(io.netty.buffer.ByteBuf buffer)
getParams in class AbstractXrootdOutboundRequestprotected int getParamsLen()
getParamsLen in class AbstractXrootdOutboundRequestCopyright © 2011–2018 dCache.org. All rights reserved.