public final class ASN1Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.bouncycastle.asn1.ASN1Primitive> |
as(Class<T> type,
org.bouncycastle.asn1.ASN1InputStream stream) |
static <T extends org.bouncycastle.asn1.ASN1Primitive> |
as(Class<T> type,
org.bouncycastle.asn1.ASN1Sequence sequence,
int index) |
static <T extends org.bouncycastle.asn1.ASN1Primitive> |
as(Class<T> type,
org.bouncycastle.asn1.ASN1TaggedObject tagged) |
static <T extends org.bouncycastle.asn1.ASN1Primitive> |
as(Class<T> type,
org.bouncycastle.asn1.DLSequence sequence,
int index) |
static <T> T |
as(Class<T> type,
Enumeration<?> enumeration) |
static <T> T |
as(Class<T> type,
Object object) |
static byte[] |
readUnparsedTagged(int expectTag,
int limit,
org.bouncycastle.asn1.ASN1InputStream in)
Read a tagged object without parsing it's contents
BC no longer seems to allow that out of the box
|
public static <T> T as(Class<T> type, Object object) throws PACDecodingException
type - object - PACDecodingExceptionpublic static <T> T as(Class<T> type, Enumeration<?> enumeration) throws PACDecodingException
type - enumeration - PACDecodingExceptionpublic static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.ASN1InputStream stream) throws PACDecodingException, IOException
type - stream - PACDecodingExceptionIOExceptionpublic static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.ASN1TaggedObject tagged) throws PACDecodingException
type - tagged - PACDecodingExceptionpublic static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.DLSequence sequence, int index) throws PACDecodingException
type - sequence - index - PACDecodingExceptionpublic static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.ASN1Sequence sequence, int index) throws PACDecodingException
type - sequence - index - PACDecodingExceptionpublic static byte[] readUnparsedTagged(int expectTag,
int limit,
org.bouncycastle.asn1.ASN1InputStream in)
throws IOException
expectTag - in - IOExceptionCopyright © 2023. All rights reserved.