Package org.webpki.asn1
Class ParseUtil
java.lang.Object
org.webpki.asn1.ParseUtil
Methods for testing data types (verifying ASN.1 object structure).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
static byte[]
bitstring
(BaseASN1Object o, int length) static Composite
static CompositeContextSpecific
static CompositeContextSpecific
compositeContext
(BaseASN1Object o, int[] allowedTagNumbers) static CompositeContextSpecific
compositeContext
(BaseASN1Object o, int tagNumber, int size) static int
static int
enumerated
(BaseASN1Object o, int allowedValue) static int
enumerated
(BaseASN1Object o, int[] allowedValues) static ASN1Integer
static int
integer
(BaseASN1Object o, int allowedValue) static int
integer
(BaseASN1Object o, int[] allowedValues) static boolean
isCompositeContext
(BaseASN1Object o, int tagNumber) static boolean
isContext
(BaseASN1Object o, int tagNumber) static boolean
isSimpleContext
(BaseASN1Object o, int tagNumber) static void
static byte[]
static ASN1ObjectID
static void
oid
(BaseASN1Object o, String allowedOID) static ASN1ObjectID
oid
(BaseASN1Object o, String[] allowedOIDs) static ASN1ObjectID
static void
seqOIDNull
(BaseASN1Object o, String oid) static ASN1Sequence
static BaseASN1Object
seqOIDValue
(BaseASN1Object o, String oid) static ASN1Sequence
static ASN1Sequence
sequence
(BaseASN1Object o, int size) static ASN1Set
static ASN1Set
set
(BaseASN1Object o, int size) static Composite
static SimpleContextSpecific
static SimpleContextSpecific
simpleContext
(BaseASN1Object o, int tagNumber) static SimpleContextSpecific
simpleContext
(BaseASN1Object o, int[] allowedTagNumbers) static BaseASN1Object
singleContext
(BaseASN1Object o, int tagNumber) static ASN1String
-
Constructor Details
-
ParseUtil
public ParseUtil()
-
-
Method Details
-
sequence
-
sequence
-
seqOIDValue
-
seqOIDValue
-
seqOIDNull
-
seqOIDNull
-
nul
-
composite
-
setOrSequence
-
set
-
set
-
isContext
-
isSimpleContext
-
isCompositeContext
-
compositeContext
-
simpleContext
-
simpleContext
-
compositeContext
-
compositeContext
-
simpleContext
-
singleContext
-
oid
-
oid
-
oid
-
integer
-
integer
-
integer
-
enumerated
-
enumerated
-
enumerated
-
octet
-
bitstring
-
bitstring
-
string
-