Class ASN1OctetStringBC

All Implemented Interfaces:
IASN1Encodable, IASN1OctetString, IASN1Primitive
Direct Known Subclasses:
DEROctetStringBC

public class ASN1OctetStringBC extends ASN1PrimitiveBC implements IASN1OctetString
Wrapper class for ASN1OctetString.
  • Constructor Details

    • ASN1OctetStringBC

      public ASN1OctetStringBC (org.bouncycastle.asn1.ASN1OctetString string)
      Creates new wrapper instance for ASN1OctetString.
      Parameters:
      string - ASN1OctetString to be wrapped
    • ASN1OctetStringBC

      public ASN1OctetStringBC (IASN1TaggedObject taggedObject, boolean b)
      Creates new wrapper instance for ASN1OctetString.
      Parameters:
      taggedObject - ASN1TaggedObject wrapper to create ASN1OctetString
      b - boolean to create ASN1OctetString
  • Method Details

    • getASN1OctetString

      public org.bouncycastle.asn1.ASN1OctetString getASN1OctetString()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1OctetString.
    • getOctets

      public byte[] getOctets()
      Calls actual getOctets method for the wrapped ASN1OctetString object.
      Specified by:
      getOctets in interface IASN1OctetString
      Returns:
      octets byte array.