public class ASN1PrimitiveBC extends ASN1EncodableBC implements IASN1Primitive
ASN1Primitive.| Constructor and Description |
|---|
ASN1PrimitiveBC(org.bouncycastle.asn1.ASN1Primitive primitive)
Creates new wrapper instance for
ASN1Primitive. |
ASN1PrimitiveBC(byte[] array)
Creates new wrapper instance for
ASN1Primitive. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded() |
byte[] |
getEncoded(String encoding) |
org.bouncycastle.asn1.ASN1Primitive |
getPrimitive()
Gets actual org.bouncycastle object being wrapped.
|
equals, getEncodable, hashCode, isNull, toASN1Primitive, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisNull, toASN1Primitivepublic ASN1PrimitiveBC(org.bouncycastle.asn1.ASN1Primitive primitive)
ASN1Primitive.primitive - ASN1Primitive to be wrappedpublic ASN1PrimitiveBC(byte[] array)
throws IOException
ASN1Primitive.array - byte array to create ASN1Primitive to be wrappedIOException - if ASN1Primitive cannot be created from byte array.public org.bouncycastle.asn1.ASN1Primitive getPrimitive()
ASN1Primitive.public byte[] getEncoded()
throws IOException
getEncoded in interface IASN1PrimitiveIOExceptionpublic byte[] getEncoded(String encoding) throws IOException
getEncoded in interface IASN1PrimitiveIOExceptionCopyright © 1998–2024 Apryse Group NV. All rights reserved.