Class X500NameBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.x500.X500NameBC
All Implemented Interfaces:
IASN1Encodable, IX500Name

public class X500NameBC extends ASN1EncodableBC implements IX500Name
Wrapper class for X500Name.
  • Constructor Details

    • X500NameBC

      public X500NameBC (org.bouncycastle.asn1.x500.X500Name x500Name)
      Creates new wrapper instance for X500Name.
      Parameters:
      x500Name - X500Name to be wrapped
  • Method Details

    • getX500Name

      public org.bouncycastle.asn1.x500.X500Name getX500Name()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped X500Name.
    • getName

      public String getName()
      Gets the RFC2253 name..
      Specified by:
      getName in interface IX500Name
      Returns:
      the RFC2253 name
    • getEncoded

      public byte[] getEncoded() throws IOException
      Gets byte array representation of a wrapped X500Name..
      Specified by:
      getEncoded in interface IX500Name
      Returns:
      byte array representation of a wrapped X500Name
      Throws:
      IOException - in case of I/O Exceptions