Package jcifs.pac
Class ASN1Util
- java.lang.Object
-
- jcifs.pac.ASN1Util
-
public final class ASN1Util extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tas(Class<T> type, Object object)static <T> Tas(Class<T> type, Enumeration<?> enumeration)static <T extends org.bouncycastle.asn1.ASN1Primitive>
Tas(Class<T> type, org.bouncycastle.asn1.ASN1InputStream stream)static <T extends org.bouncycastle.asn1.ASN1Primitive>
Tas(Class<T> type, org.bouncycastle.asn1.ASN1TaggedObject tagged)static <T extends org.bouncycastle.asn1.ASN1Primitive>
Tas(Class<T> type, org.bouncycastle.asn1.DLSequence sequence, int index)
-
-
-
Method Detail
-
as
public static <T> T as(Class<T> type, Object object) throws PACDecodingException
- Parameters:
type-object-- Returns:
- object cast to type
- Throws:
PACDecodingException
-
as
public static <T> T as(Class<T> type, Enumeration<?> enumeration) throws PACDecodingException
- Parameters:
type-enumeration-- Returns:
- next element from enumeration cast to type
- Throws:
PACDecodingException
-
as
public static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.ASN1InputStream stream) throws PACDecodingException, IOException
- Parameters:
type-stream-- Returns:
- next object from stream cast to type
- Throws:
PACDecodingExceptionIOException
-
as
public static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.ASN1TaggedObject tagged) throws PACDecodingException
- Parameters:
type-tagged-- Returns:
- tagged object contents cast to type
- Throws:
PACDecodingException
-
as
public static <T extends org.bouncycastle.asn1.ASN1Primitive> T as(Class<T> type, org.bouncycastle.asn1.DLSequence sequence, int index) throws PACDecodingException
- Parameters:
type-sequence-index-- Returns:
- sequence element cast to type
- Throws:
PACDecodingException
-
-