Package jcifs.ntlmssp.av
Class AvPairs
- java.lang.Object
-
- jcifs.ntlmssp.av.AvPairs
-
public final class AvPairs extends Object
- Author:
- mbechler
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
contains(List<AvPair> pairs, int type)
static List<AvPair>
decode(byte[] data)
Decode a list of AvPairsstatic byte[]
encode(List<AvPair> pairs)
static AvPair
get(List<AvPair> pairs, int type)
static void
remove(List<AvPair> pairs, int type)
Remove all occurances of the given typestatic void
replace(List<AvPair> pairs, AvPair rep)
Replace all occurances of the given type
-
-
-
Method Detail
-
decode
public static List<AvPair> decode(byte[] data) throws CIFSException
Decode a list of AvPairs- Parameters:
data
-- Returns:
- individual pairs
- Throws:
CIFSException
-
contains
public static boolean contains(List<AvPair> pairs, int type)
- Parameters:
pairs
-type
-- Returns:
- whether the list contains a pair of that type
-
get
public static AvPair get(List<AvPair> pairs, int type)
- Parameters:
pairs
-type
-- Returns:
- first occurance of the given type
-
remove
public static void remove(List<AvPair> pairs, int type)
Remove all occurances of the given type- Parameters:
pairs
-type
-
-
replace
public static void replace(List<AvPair> pairs, AvPair rep)
Replace all occurances of the given type- Parameters:
pairs
-rep
-
-
-