Package com.enterprisedt.net.ftp.ssl
Class SSLFTPCertificate.DistinguishedName
java.lang.Object
com.enterprisedt.net.ftp.ssl.SSLFTPCertificate.DistinguishedName
- Enclosing class:
SSLFTPCertificate
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 Summary
Modifier and TypeMethodDescriptionReturns the Common Name (CN) component of this Distinguished Name.Returns the Country (C) component of this Distinguished Name.byte[]getDER()Returns the raw DER encoding of this Distinguished Name.Returns the Locality (L) component of this Distinguished Name.Returns the Organisational Unit (OU) component of this Distinguished Name.Returns the Organisational Name (O) component of this Distinguished Name.getState()Returns the State (ST) component of this Distinguished Name.
-
Method Details
-
getDER
public byte[] getDER()Returns the raw DER encoding of this Distinguished Name.- Returns:
- a byte-array containing the DER.
-
getCountry
Returns the Country (C) component of this Distinguished Name.- Returns:
- Country
-
getLocality
Returns the Locality (L) component of this Distinguished Name.- Returns:
- Locality
-
getOrganisationalUnit
Returns the Organisational Unit (OU) component of this Distinguished Name.- Returns:
- Organisational Unit
-
getOrganisationName
Returns the Organisational Name (O) component of this Distinguished Name.- Returns:
- Organisational Name
-
getState
Returns the State (ST) component of this Distinguished Name.- Returns:
- State
-
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 isenterprisedt.com. If the machine is on an intranet, it is usually the machine-name.- Returns:
- Common Name
-