Class ASN1OctetString

    • Field Detail

      • string

        byte[] string
    • Constructor Detail

      • ASN1OctetString

        public ASN1OctetString​(byte[] string)
        Parameters:
        string - the octets making up the octet string.
      • ASN1OctetString

        public ASN1OctetString​(DEREncodable obj)
    • Method Detail

      • getInstance

        public static ASN1OctetString getInstance​(ASN1TaggedObject obj,
                                                  boolean explicit)
        return an Octet String from a tagged object.
        Parameters:
        obj - the tagged object holding the object we want.
        explicit - true if the object is meant to be explicitly tagged false otherwise.
        Throws:
        java.lang.IllegalArgumentException - if the tagged object cannot be converted.
      • getInstance

        public static ASN1OctetString getInstance​(java.lang.Object obj)
        return an Octet String from the given object.
        Parameters:
        obj - the object we want converted.
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getOctets

        public byte[] getOctets()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object