Class SigverRequest
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
-
- org.dcache.xrootd.protocol.messages.SigverRequest
-
- All Implemented Interfaces:
XrootdRequest
public class SigverRequest extends AbstractXrootdRequest
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 intkXR_HashMaskstatic intkXR_rsaKeystatic intkXR_SHA256static intSIGVER_VERSION-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
requestId, session, streamId
-
-
Constructor Summary
Constructors Constructor Description SigverRequest(io.netty.buffer.ByteBuf buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrypt(BufferDecrypter decrypter)bytegetCrypto()intgetExpectrid()bytegetFlags()longgetSeqno()byte[]getSignature()bytegetVersion()booleanisRSAKey()booleanisSHA256()-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
getRequestId, getSession, getStreamId, getSubject, setSession
-
-
-
-
Field Detail
-
kXR_SHA256
public static final int kXR_SHA256
- See Also:
- Constant Field Values
-
kXR_rsaKey
public static final int kXR_rsaKey
- See Also:
- Constant Field Values
-
kXR_HashMask
public static final int kXR_HashMask
- See Also:
- Constant Field Values
-
SIGVER_VERSION
public static final int SIGVER_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
decrypt
public void decrypt(BufferDecrypter decrypter) 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
-
getCrypto
public byte getCrypto()
-
getVersion
public byte getVersion()
-
isSHA256
public boolean isSHA256()
-
isRSAKey
public boolean isRSAKey()
-
getSignature
public byte[] getSignature()
-
getExpectrid
public int getExpectrid()
-
getFlags
public byte getFlags()
-
getSeqno
public long getSeqno()
-
-