Interface IASN1Primitive
-
- All Superinterfaces:
IASN1Encodable
- All Known Subinterfaces:
IASN1BitString,IASN1Enumerated,IASN1GeneralizedTime,IASN1Integer,IASN1ObjectIdentifier,IASN1OctetString,IASN1Sequence,IASN1Set,IASN1TaggedObject,IASN1UTCTime,IDERIA5String,IDERNull,IDEROctetString,IDERSequence,IDERSet,IDERTaggedObject,IPKIFailureInfo,IReasonFlags
- All Known Implementing Classes:
ASN1BitStringBC,ASN1EnumeratedBC,ASN1GeneralizedTimeBC,ASN1IntegerBC,ASN1ObjectIdentifierBC,ASN1OctetStringBC,ASN1PrimitiveBC,ASN1SequenceBC,ASN1SetBC,ASN1TaggedObjectBC,ASN1UTCTimeBC,DERIA5StringBC,DERNullBC,DEROctetStringBC,DERSequenceBC,DERSetBC,DERTaggedObjectBC,PKIFailureInfoBC,ReasonFlagsBC
public interface IASN1Primitive extends IASN1Encodable
This interface represents the wrapper for ASN1Primitive that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getEncoded()Calls actualgetEncodedmethod for the wrapped ASN1Primitive object.byte[]getEncoded(java.lang.String encoding)Calls actualgetEncodedmethod for the wrapped ASN1Primitive object.-
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
-
-
-
Method Detail
-
getEncoded
byte[] getEncoded() throws java.io.IOExceptionCalls actualgetEncodedmethod for the wrapped ASN1Primitive object.- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException- on encoding error.
-
getEncoded
byte[] getEncoded(java.lang.String encoding) throws java.io.IOExceptionCalls actualgetEncodedmethod for the wrapped ASN1Primitive object.- Parameters:
encoding- encoding value- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException- on encoding error.
-
-