Class SSLFTPCertificate.DistinguishedName

java.lang.Object
com.enterprisedt.net.ftp.ssl.SSLFTPCertificate.DistinguishedName
Enclosing class:
SSLFTPCertificate

public static class SSLFTPCertificate.DistinguishedName extends Object
Distinguished Name (DN) of an entity. A distinguished name consists of the following named components:
CN
Common Name (e.g. enterprisedt.com)
O
Organisation Name (e.g. Enterprise Distributed Technologies)
OU
Organisational Unit (e.g. IT Department)
L
Locality (e.g. London)
ST
State (e.g. California)
C
Country (e.g. US)
Author:
Hans Andersen
  • Method Details

    • getDER

      public byte[] getDER()
      Returns the raw DER encoding of this Distinguished Name.
      Returns:
      a byte-array containing the DER.
    • getCountry

      public String getCountry()
      Returns the Country (C) component of this Distinguished Name.
      Returns:
      Country
    • getLocality

      public String getLocality()
      Returns the Locality (L) component of this Distinguished Name.
      Returns:
      Locality
    • getOrganisationalUnit

      public String getOrganisationalUnit()
      Returns the Organisational Unit (OU) component of this Distinguished Name.
      Returns:
      Organisational Unit
    • getOrganisationName

      public String getOrganisationName()
      Returns the Organisational Name (O) component of this Distinguished Name.
      Returns:
      Organisational Name
    • getState

      public String getState()
      Returns the State (ST) component of this Distinguished Name.
      Returns:
      State
    • getCommonName

      public String getCommonName()
      Returns the Common Name (CN) component of this Distinguished Name. By convention this is the DNS name of the machine to which the certificate belongs. For example, the CN of Enterprise Distributed Technologies's certificate is enterprisedt.com. If the machine is on an intranet, it is usually the machine-name.
      Returns:
      Common Name