Package jcifs.internal.smb2.nego
Class EncryptionNegotiateContext
- java.lang.Object
-
- jcifs.internal.smb2.nego.EncryptionNegotiateContext
-
- All Implemented Interfaces:
Decodable,Encodable,NegotiateContextRequest,NegotiateContextResponse
public class EncryptionNegotiateContext extends Object implements NegotiateContextRequest, NegotiateContextResponse
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intCIPHER_AES128_CCMAES 128 CCMstatic intCIPHER_AES128_GCMAES 128 GCMstatic intNEGO_CTX_ENC_TYPEContext type
-
Constructor Summary
Constructors Constructor Description EncryptionNegotiateContext()EncryptionNegotiateContext(Configuration config, int[] ciphers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecode(byte[] buffer, int bufferIndex, int len)intencode(byte[] dst, int dstIndex)int[]getCiphers()intgetContextType()intsize()
-
-
-
Field Detail
-
NEGO_CTX_ENC_TYPE
public static final int NEGO_CTX_ENC_TYPE
Context type- See Also:
- Constant Field Values
-
CIPHER_AES128_CCM
public static final int CIPHER_AES128_CCM
AES 128 CCM- See Also:
- Constant Field Values
-
CIPHER_AES128_GCM
public static final int CIPHER_AES128_GCM
AES 128 GCM- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptionNegotiateContext
public EncryptionNegotiateContext(Configuration config, int[] ciphers)
- Parameters:
config-ciphers-
-
EncryptionNegotiateContext
public EncryptionNegotiateContext()
-
-
Method Detail
-
getCiphers
public int[] getCiphers()
- Returns:
- the ciphers
-
getContextType
public int getContextType()
- Specified by:
getContextTypein interfaceNegotiateContextRequest- Specified by:
getContextTypein interfaceNegotiateContextResponse- Returns:
- context type
- See Also:
NegotiateContextRequest.getContextType()
-
encode
public int encode(byte[] dst, int dstIndex)- Specified by:
encodein interfaceEncodable- Returns:
- encoded length
- See Also:
Encodable.encode(byte[], int)
-
decode
public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException- Specified by:
decodein interfaceDecodable- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException- See Also:
Decodable.decode(byte[], int, int)
-
size
public int size()
- Specified by:
sizein interfaceEncodable- Returns:
- the encoded size
- See Also:
Encodable.size()
-
-