public class SSLFTPCertificate
extends java.lang.Object
SSLFTPCertificate contains information regarding an
X.509 certificate. Details include:
| Modifier and Type | Class and Description |
|---|---|
static class |
SSLFTPCertificate.DistinguishedName
Distinguished Name (DN) of an entity.
|
static class |
SSLFTPCertificate.Extension
Extension of a certificate.
|
| Constructor and Description |
|---|
SSLFTPCertificate(java.security.cert.Certificate certificate)
Constructs an
SSLFTPCertificate instance from the given
Certificate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getCertDER()
Returns the raw DER encoding of the certificate.
|
java.util.Vector |
getExtensions()
Returns a vector containing the extensions of the certificate.
|
SSLFTPCertificate.DistinguishedName |
getIssuerName()
Returns the Distinguished Name of the issuer of the certificate
or
null if there isn't one. |
java.math.BigInteger |
getSerial()
Returns the serial number of the certificate.
|
SSLFTPCertificate.DistinguishedName |
getSubjectName()
Returns the Distinguished Name of the subject of the certificate.
|
java.util.Date |
getValidityNotAfter()
Returns the start-date of the period of validity of the certificate.
|
java.util.Date |
getValidityNotBefore()
Returns the end of the period of validity of the certificate.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean showHeader) |
void |
writePEM(java.io.OutputStream outStr)
Writes the certificate in PEM format to the given
OutputStream. |
void |
writePEM(java.io.Writer writer)
Writes the certificate in PEM format to the given
Writer. |
public SSLFTPCertificate(java.security.cert.Certificate certificate)
throws SSLFTPCertificateException
SSLFTPCertificate instance from the given
Certificate.certificate - CertificateSSLFTPException - thrown if the certificate was found to be invalid.SSLFTPCertificateExceptionpublic byte[] getCertDER()
public java.util.Vector getExtensions()
SSLFTPCertificate.Extension objects.public SSLFTPCertificate.DistinguishedName getIssuerName()
null if there isn't one.null.public java.math.BigInteger getSerial()
public SSLFTPCertificate.DistinguishedName getSubjectName()
public java.util.Date getValidityNotAfter()
public java.util.Date getValidityNotBefore()
public void writePEM(java.io.OutputStream outStr)
throws java.io.IOException
OutputStream.outStr - OutputStream to write to.java.io.IOException - Thrown if an error occurred while writing the certificate.public void writePEM(java.io.Writer writer)
throws java.io.IOException
Writer.writer - java.io.IOException - Thrown if an error occurred while writing the certificate.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean showHeader)
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.