Package org.bouncycastle.asn1
Class BEROctetString
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1OctetString
org.bouncycastle.asn1.BEROctetString
- All Implemented Interfaces:
ASN1Encodable,ASN1OctetStringParser,InMemoryRepresentable
- Direct Known Subclasses:
BERConstructedOctetString
public class BEROctetString extends ASN1OctetString
-
Constructor Summary
Constructors Constructor Description BEROctetString(byte[] string)BEROctetString(ASN1OctetString[] octs) -
Method Summary
Modifier and Type Method Description voidencode(ASN1OutputStream out)EnumerationgetObjects()return the DER octets that make up this string.byte[]getOctets()Methods inherited from class org.bouncycastle.asn1.ASN1OctetString
getInstance, getInstance, getLoadedObject, getOctetStream, hashCode, parser, toStringMethods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
-
Constructor Details
-
BEROctetString
public BEROctetString(byte[] string)- Parameters:
string- the octets making up the octet string.
-
BEROctetString
-
-
Method Details
-
getOctets
public byte[] getOctets()- Overrides:
getOctetsin classASN1OctetString
-
getObjects
return the DER octets that make up this string. -
encode
- Throws:
IOException
-