com.enterprisedt.net.ftp.ssl
Class SSLFTPCertificate.DistinguishedName

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

public static class SSLFTPCertificate.DistinguishedName
extends java.lang.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)
S
State (e.g. London)
C
Country (e.g. Great Britain)

Author:
Hans Andersen

Method Summary
 java.lang.String getCommonName()
          Returns the Common Name (CN) component of this Distinguished Name.
 java.lang.String getCountry()
          Returns the Country (C) component of this Distinguished Name.
 byte[] getDER()
          Returns the raw DER encoding of this Distinguished Name.
 java.lang.String getLocality()
          Returns the Locality (L) component of this Distinguished Name.
 java.lang.String getOrganisationalUnit()
          Returns the Organisational Unit (OU) component of this Distinguished Name.
 java.lang.String getOrganisationName()
          Returns the Organisational Name (O) component of this Distinguished Name.
 java.lang.String getState()
          Returns the State (S) component of this Distinguished Name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDER

public byte[] getDER()
Returns the raw DER encoding of this Distinguished Name.

Returns:
a byte-array containing the DER.

getCountry

public java.lang.String getCountry()
Returns the Country (C) component of this Distinguished Name.

Returns:
Country

getLocality

public java.lang.String getLocality()
Returns the Locality (L) component of this Distinguished Name.

Returns:
Locality

getOrganisationalUnit

public java.lang.String getOrganisationalUnit()
Returns the Organisational Unit (OU) component of this Distinguished Name.

Returns:
Organisational Unit

getOrganisationName

public java.lang.String getOrganisationName()
Returns the Organisational Name (O) component of this Distinguished Name.

Returns:
Organisational Name

getState

public java.lang.String getState()
Returns the State (S) component of this Distinguished Name.

Returns:
State

getCommonName

public java.lang.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


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.