Interface ASN1Encodable

    • Method Detail

      • encodeTo

        void encodeTo​(ASN1Encoder encoder)
        Encode this object.
        Parameters:
        encoder - the encoder (must not be null)
      • ofUtf8String

        static ASN1Encodable ofUtf8String​(String string)
        Create an instance that will encode the given string as UTF-8.
        Parameters:
        string - the string to encode (must not be null)
        Returns:
        the instance
      • ofBMPString

        static ASN1Encodable ofBMPString​(String string)
        Create an instance that will encode the given string as BMP (UTF-16BE).
        Parameters:
        string - the string to encode (must not be null)
        Returns:
        the instance
      • ofUniversalString

        static ASN1Encodable ofUniversalString​(String string)
        Create an instance that will encode the given string as universal (UTF-32BE).
        Parameters:
        string - the string to encode (must not be null)
        Returns:
        the instance
      • ofIA5String

        static ASN1Encodable ofIA5String​(String string)
        Create an instance that will encode the given string in IA5 form.
        Parameters:
        string - the string to encode (must not be null)
        Returns:
        the instance
      • ofPrintableString

        static ASN1Encodable ofPrintableString​(String string)
        Create an instance that will encode the given string in "printable" form.
        Parameters:
        string - the string to encode (must not be null)
        Returns:
        the instance
      • ofInteger

        static ASN1Encodable ofInteger​(int value)
        Create an instance that will encode the given integer.
        Parameters:
        value - the integer to encode
        Returns:
        the instance
      • ofInteger

        static ASN1Encodable ofInteger​(BigInteger value)
        Create an instance that will encode the given integer.
        Parameters:
        value - the integer to encode (must not be null)
        Returns:
        the instance
      • ofOid

        static ASN1Encodable ofOid​(String oid)
        Create an instance that will encode the given object identifier.
        Parameters:
        oid - the object identifier to encode (must not be null)
        Returns:
        the instance
      • ofEncodedBytes

        static ASN1Encodable ofEncodedBytes​(byte[] bytes)
        Create an instance that will write the given encoded bytes.
        Parameters:
        bytes - the bytes to write (must not be null)
        Returns:
        the instance