Package jcifs.internal.smb2.nego
Class PreauthIntegrityNegotiateContext
- java.lang.Object
-
- jcifs.internal.smb2.nego.PreauthIntegrityNegotiateContext
-
- All Implemented Interfaces:
Decodable,Encodable,NegotiateContextRequest,NegotiateContextResponse
public class PreauthIntegrityNegotiateContext extends Object implements NegotiateContextRequest, NegotiateContextResponse
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intHASH_ALGO_SHA512SHA-512static intNEGO_CTX_PREAUTH_TYPEContext type
-
Constructor Summary
Constructors Constructor Description PreauthIntegrityNegotiateContext()PreauthIntegrityNegotiateContext(Configuration config, int[] hashAlgos, byte[] salt)
-
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)intgetContextType()int[]getHashAlgos()byte[]getSalt()intsize()
-
-
-
Field Detail
-
NEGO_CTX_PREAUTH_TYPE
public static final int NEGO_CTX_PREAUTH_TYPE
Context type- See Also:
- Constant Field Values
-
HASH_ALGO_SHA512
public static final int HASH_ALGO_SHA512
SHA-512- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PreauthIntegrityNegotiateContext
public PreauthIntegrityNegotiateContext(Configuration config, int[] hashAlgos, byte[] salt)
- Parameters:
config-hashAlgos-salt-
-
PreauthIntegrityNegotiateContext
public PreauthIntegrityNegotiateContext()
-
-
Method Detail
-
getSalt
public byte[] getSalt()
- Returns:
- the salt
-
getHashAlgos
public int[] getHashAlgos()
- Returns:
- the hashAlgos
-
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()
-
-