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
,ASN1BitStringBCFips
,ASN1EnumeratedBC
,ASN1EnumeratedBCFips
,ASN1GeneralizedTimeBC
,ASN1GeneralizedTimeBCFips
,ASN1IntegerBC
,ASN1IntegerBCFips
,ASN1ObjectIdentifierBC
,ASN1ObjectIdentifierBCFips
,ASN1OctetStringBC
,ASN1OctetStringBCFips
,ASN1PrimitiveBC
,ASN1PrimitiveBCFips
,ASN1SequenceBC
,ASN1SequenceBCFips
,ASN1SetBC
,ASN1SetBCFips
,ASN1TaggedObjectBC
,ASN1TaggedObjectBCFips
,ASN1UTCTimeBC
,ASN1UTCTimeBCFips
,DERIA5StringBC
,DERIA5StringBCFips
,DERNullBC
,DERNullBCFips
,DEROctetStringBC
,DEROctetStringBCFips
,DERSequenceBC
,DERSequenceBCFips
,DERSetBC
,DERSetBCFips
,DERTaggedObjectBC
,DERTaggedObjectBCFips
,PKIFailureInfoBC
,PKIFailureInfoBCFips
,ReasonFlagsBC
,ReasonFlagsBCFips
This interface represents the wrapper for ASN1Primitive that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Calls actualgetEncoded
method for the wrapped ASN1Primitive object.byte[]
getEncoded
(String encoding) Calls actualgetEncoded
method for the wrapped ASN1Primitive object.Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
Method Details
-
getEncoded
Calls actualgetEncoded
method for the wrapped ASN1Primitive object.- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-
getEncoded
Calls actualgetEncoded
method for the wrapped ASN1Primitive object.- Parameters:
-
encoding
- encoding value - Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-