java.lang.Object
org.codelibs.jcifs.smb.ntlmssp.av.AvPairs
Collection and utility class for managing NTLMSSP AV (Attribute-Value) pairs.
Provides methods for encoding, decoding, and manipulating sets of AV pairs.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the AV pairs list contains a pair of the specified typedecode(byte[] data) Decode a list of AvPairsstatic byte[]Encodes a list of AV pairs into byte array formatstatic AvPairGets the first AV pair of the specified type from the liststatic voidRemove all occurances of the given typestatic voidReplace all occurances of the given type
-
Method Details
-
decode
Decode a list of AvPairs- Parameters:
data- the encoded AV pairs data- Returns:
- individual pairs
- Throws:
CIFSException- if decoding fails
-
contains
Checks if the AV pairs list contains a pair of the specified type- Parameters:
pairs- the list of AV pairs to searchtype- the AV pair type to look for- Returns:
- whether the list contains a pair of that type
-
get
Gets the first AV pair of the specified type from the list- Parameters:
pairs- the list of AV pairs to searchtype- the AV pair type to retrieve- Returns:
- first occurance of the given type
-
remove
Remove all occurances of the given type- Parameters:
pairs- the list of AV pairs to modifytype- the AV pair type to remove
-
replace
Replace all occurances of the given type- Parameters:
pairs- the list of AV pairs to modifyrep- the replacement AV pair
-
encode
Encodes a list of AV pairs into byte array format- Parameters:
pairs- the list of AV pairs to encode- Returns:
- encoded avpairs
-