Package com.itextpdf.bouncycastle.asn1
Class ASN1OctetStringBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
com.itextpdf.bouncycastle.asn1.ASN1OctetStringBC
- All Implemented Interfaces:
-
IASN1Encodable
,IASN1OctetString
,IASN1Primitive
- Direct Known Subclasses:
-
DEROctetStringBC
Wrapper class for
ASN1OctetString
.
-
Constructor Summary
ConstructorDescriptionASN1OctetStringBC
(IASN1TaggedObject taggedObject, boolean b) Creates new wrapper instance forASN1OctetString
.ASN1OctetStringBC
(org.bouncycastle.asn1.ASN1OctetString string) Creates new wrapper instance forASN1OctetString
. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1OctetString
Gets actual org.bouncycastle object being wrapped.byte[]
Calls actualgetOctets
method for the wrapped ASN1OctetString object.Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
getEncoded, getEncoded, getPrimitive
Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
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
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive
getEncoded, getEncoded
-
Constructor Details
-
ASN1OctetStringBC
public ASN1OctetStringBC(org.bouncycastle.asn1.ASN1OctetString string) Creates new wrapper instance forASN1OctetString
.- Parameters:
-
string
-ASN1OctetString
to be wrapped
-
ASN1OctetStringBC
Creates new wrapper instance forASN1OctetString
.- Parameters:
-
taggedObject
- ASN1TaggedObject wrapper to createASN1OctetString
-
b
- boolean to createASN1OctetString
-
-
Method Details
-
getASN1OctetString
public org.bouncycastle.asn1.ASN1OctetString getASN1OctetString()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
ASN1OctetString
.
-
getOctets
public byte[] getOctets()Calls actualgetOctets
method for the wrapped ASN1OctetString object.- Specified by:
-
getOctets
in interfaceIASN1OctetString
- Returns:
- octets byte array.
-