Class OutboundSigverRequest
- java.lang.Object
-
- org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
-
- org.dcache.xrootd.tpc.protocol.messages.OutboundSigverRequest
-
- All Implemented Interfaces:
XrootdOutboundRequest
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
-
-
Field Summary
Fields Modifier and Type Field Description static bytekXR_SHA256-
Fields inherited from class org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
requestId, streamId
-
-
Constructor Summary
Constructors Constructor Description OutboundSigverRequest(long seqno, AbstractXrootdOutboundRequest request, io.netty.channel.ChannelHandlerContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencrypt(BufferEncrypter encrypter)protected voidgetParams(io.netty.buffer.ByteBuf buffer)protected intgetParamsLen()-
Methods inherited from class org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
getRequestId, getStreamId, writeTo, writeToBuffer
-
-
-
-
Field Detail
-
kXR_SHA256
public static final byte kXR_SHA256
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OutboundSigverRequest
public OutboundSigverRequest(long seqno, AbstractXrootdOutboundRequest request, io.netty.channel.ChannelHandlerContext ctx) throws java.security.NoSuchAlgorithmException- Throws:
java.security.NoSuchAlgorithmException
-
-
Method Detail
-
encrypt
public void encrypt(BufferEncrypter encrypter) throws javax.crypto.NoSuchPaddingException, java.security.InvalidAlgorithmParameterException, java.security.NoSuchAlgorithmException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, java.security.NoSuchProviderException, java.security.InvalidKeyException
- Throws:
javax.crypto.NoSuchPaddingExceptionjava.security.InvalidAlgorithmParameterExceptionjava.security.NoSuchAlgorithmExceptionjavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyException
-
getParams
protected void getParams(io.netty.buffer.ByteBuf buffer)
- Specified by:
getParamsin classAbstractXrootdOutboundRequest
-
getParamsLen
protected int getParamsLen()
- Specified by:
getParamsLenin classAbstractXrootdOutboundRequest
-
-