Package net.sf.michaelo.tomcat.pac.asn1
Class AdIfRelevantAsn1Parser
- java.lang.Object
-
- net.sf.michaelo.tomcat.pac.asn1.AdIfRelevantAsn1Parser
-
public class AdIfRelevantAsn1Parser extends Object
A minimalist ASN.1 parser for KerberosAuthorizationData
according to RFC 4120, section 5.2.6 for theAD-IF-RELEVANT
type. It unwraps all nested data as described in MS-PAC structure.
-
-
Field Summary
Fields Modifier and Type Field Description static int
AD_IF_RELEVANT
static int
AD_WIN2K_PAC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<AuthorizationDataEntry>
parse(byte[] adIfRelevant)
Parses the ASN.1 structure and converts to a list ofAuthorizationDataEntry
elements.
-
-
-
Field Detail
-
AD_IF_RELEVANT
public static final int AD_IF_RELEVANT
- See Also:
- Constant Field Values
-
AD_WIN2K_PAC
public static final int AD_WIN2K_PAC
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static List<AuthorizationDataEntry> parse(byte[] adIfRelevant)
Parses the ASN.1 structure and converts to a list ofAuthorizationDataEntry
elements.- Parameters:
adIfRelevant
- ASN.1 encoded data- Returns:
- a list of
AuthorizationDataEntry
elements - Throws:
NullPointerException
- ifadIfRelevant
is nullIllegalArgumentException
- ifadIfRelevant
is empty
-
-