Class ASN1PrimitiveBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.asn1.ASN1EncodableBCFips
com.itextpdf.bouncycastlefips.asn1.ASN1PrimitiveBCFips
- All Implemented Interfaces:
-
IASN1Encodable
,IASN1Primitive
- Direct Known Subclasses:
-
ASN1BitStringBCFips
,ASN1EnumeratedBCFips
,ASN1GeneralizedTimeBCFips
,ASN1IntegerBCFips
,ASN1ObjectIdentifierBCFips
,ASN1OctetStringBCFips
,ASN1SequenceBCFips
,ASN1SetBCFips
,ASN1TaggedObjectBCFips
,ASN1UTCTimeBCFips
,DERIA5StringBCFips
,DERNullBCFips
,PKIFailureInfoBCFips
Wrapper class for
ASN1Primitive
.
-
Constructor Summary
ConstructorDescriptionASN1PrimitiveBCFips
(byte[] array) Creates new wrapper instance forASN1Primitive
.ASN1PrimitiveBCFips
(org.bouncycastle.asn1.ASN1Primitive primitive) Creates new wrapper instance forASN1Primitive
. -
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.org.bouncycastle.asn1.ASN1Primitive
Gets actual org.bouncycastle object being wrapped.Methods inherited from class com.itextpdf.bouncycastlefips.asn1.ASN1EncodableBCFips
equals, getEncodable, hashCode, isNull, toASN1Primitive, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
Constructor Details
-
ASN1PrimitiveBCFips
public ASN1PrimitiveBCFips(org.bouncycastle.asn1.ASN1Primitive primitive) Creates new wrapper instance forASN1Primitive
.- Parameters:
-
primitive
-ASN1Primitive
to be wrapped
-
ASN1PrimitiveBCFips
Creates new wrapper instance forASN1Primitive
.- Parameters:
-
array
- byte array to createASN1Primitive
to be wrapped - Throws:
-
IOException
- ifASN1Primitive
cannot be created from byte array.
-
-
Method Details
-
getPrimitive
public org.bouncycastle.asn1.ASN1Primitive getPrimitive()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
ASN1Primitive
.
-
getEncoded
Calls actualgetEncoded
method for the wrapped ASN1Primitive object.- Specified by:
-
getEncoded
in interfaceIASN1Primitive
- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-
getEncoded
Calls actualgetEncoded
method for the wrapped ASN1Primitive object.- Specified by:
-
getEncoded
in interfaceIASN1Primitive
- Parameters:
-
encoding
- encoding value - Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-