Class ASN1OctetStringBCFips

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

public class ASN1OctetStringBCFips extends ASN1PrimitiveBCFips implements IASN1OctetString
Wrapper class for ASN1OctetString.
  • Constructor Details

    • ASN1OctetStringBCFips

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

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

    • getOctetString

      public org.bouncycastle.asn1.ASN1OctetString getOctetString()
      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.