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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]static byte[]bitstring(BaseASN1Object o, int length) static Compositestatic CompositeContextSpecificstatic CompositeContextSpecificcompositeContext(BaseASN1Object o, int[] allowedTagNumbers) static CompositeContextSpecificcompositeContext(BaseASN1Object o, int tagNumber, int size) static intstatic intenumerated(BaseASN1Object o, int allowedValue) static intenumerated(BaseASN1Object o, int[] allowedValues) static ASN1Integerstatic intinteger(BaseASN1Object o, int allowedValue) static intinteger(BaseASN1Object o, int[] allowedValues) static booleanisCompositeContext(BaseASN1Object o, int tagNumber) static booleanisContext(BaseASN1Object o, int tagNumber) static booleanisSimpleContext(BaseASN1Object o, int tagNumber) static voidstatic byte[]static ASN1ObjectIDstatic voidoid(BaseASN1Object o, String allowedOID) static ASN1ObjectIDoid(BaseASN1Object o, String[] allowedOIDs) static ASN1ObjectIDstatic voidseqOIDNull(BaseASN1Object o, String oid) static ASN1Sequencestatic BaseASN1ObjectseqOIDValue(BaseASN1Object o, String oid) static ASN1Sequencestatic ASN1Sequencesequence(BaseASN1Object o, int size) static ASN1Setstatic ASN1Setset(BaseASN1Object o, int size) static Compositestatic SimpleContextSpecificstatic SimpleContextSpecificsimpleContext(BaseASN1Object o, int tagNumber) static SimpleContextSpecificsimpleContext(BaseASN1Object o, int[] allowedTagNumbers) static BaseASN1ObjectsingleContext(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
-