|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.ssl.SSLFTPCertificate
public class SSLFTPCertificate
A SSLFTPCertificate contains information regarding an
X.509 certificate. Details include:
| Nested Class Summary | |
|---|---|
static class |
SSLFTPCertificate.DistinguishedName
Distinguished Name (DN) of an entity. |
static class |
SSLFTPCertificate.Extension
Extension of a certificate. |
| Constructor Summary | |
|---|---|
SSLFTPCertificate(java.security.cert.Certificate certificate)
Constructs an SSLFTPCertificate instance from the given
Certificate. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SSLFTPCertificate(java.security.cert.Certificate certificate)
throws SSLFTPCertificateException
SSLFTPCertificate instance from the given
Certificate.
certificate - Certificate
SSLFTPException - thrown if the certificate was found to be invalid.
SSLFTPCertificateException| Method Detail |
|---|
public 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.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||