DERUniversalString (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.asn1

## Class DERUniversalString

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.ASN1Primitive
    - - org.bouncycastle.asn1.ASN1UniversalString
      - - org.bouncycastle.asn1.DERUniversalString

- All Implemented Interfaces:
    ASN1Encodable, ASN1String, Encodable

      public class DERUniversalString
      extends ASN1UniversalString

  DER UniversalString object - encodes UNICODE (ISO 10646) characters using 32-bit format. In Java we have no way of representing this directly so we rely on byte arrays to carry these.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DERUniversalString(byte[] string)` Basic constructor - byte encoded string.

  - ### Method Summary

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1UniversalString

      `getInstance, getInstance, getOctets, getString, getTagged, hashCode, toString`

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Primitive

      `encodeTo, encodeTo, equals, equals, equals, fromByteArray, fromStream, toASN1Primitive`

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `getEncoded, getEncoded, hasEncodedTagValue`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DERUniversalString

          public DERUniversalString(byte[] string)

      Basic constructor - byte encoded string.
      Parameters:
        `string` - the byte encoding of the string to be carried in the UniversalString object,