com.glub.secureftp.bean
Class SSLCertificate

java.lang.Object
  extended by com.glub.secureftp.bean.SSLCertificate

public class SSLCertificate
extends Object

The SSLCertificate class contains useful information about an SSL (X509) certificate.

Since:
2.1.3
Version:
$Revision: 47 $, $Date: 2009-05-16 10:10:12 -0700 (Sat, 16 May 2009) $

Constructor Summary
SSLCertificate(X509Certificate cert)
          Create a SSLCertificate object.
 
Method Summary
 int getBitStrength()
          Return the bit strength of the RSA certificate
 String getCN()
          Returns the common name of the certificate.
 String getCountry()
          Returns the country associated with the certificate.
 String getEmail()
          Returns the e-mail address associated with the certificate.
 Date getEndDate()
          Returns the ending date of the certificate.
 String getFingerprint()
          Returns the crypto fingerprint of the certificate.
 String getIssuerCN()
          Returns the common name of the certificate issuer.
 String getIssuerCountry()
          Returns the country associated with the certificate issuer.
 String getIssuerEmail()
          Returns the e-mail address associated with the certificate issuer.
 String getIssuerLocality()
          Returns the locality (or city) associated with the certificate issuer.
 String getIssuerOrg()
          Returns the organization associated with the certificate issuer.
 String getIssuerOU()
          Returns the organizational unit associated with the certificate issuer.
 String getIssuerState()
          Returns the state associated with the certificate issuer.
 String getLocality()
          Returns the locality (or city) associated with the certificate.
 String getOrg()
          Returns the organization associated with the certificate.
 String getOU()
          Returns the organizational unit associated with the certificate.
 String getSerialNumber()
          Returns the serial number of the certificate.
 Date getStartDate()
          Returns the starting date of the certificate.
 String getState()
          Returns the state associated with the certificate.
 X509Certificate getX509Certificate()
          Returns the X.509 certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLCertificate

public SSLCertificate(X509Certificate cert)
Create a SSLCertificate object.

Parameters:
cert - the X509 certificate.
Method Detail

getX509Certificate

public X509Certificate getX509Certificate()
Returns the X.509 certificate.

Returns:
the X.509 certificate

getFingerprint

public String getFingerprint()
Returns the crypto fingerprint of the certificate.

Returns:
the crypto fingerprint of the certificate.

getSerialNumber

public String getSerialNumber()
Returns the serial number of the certificate.

Returns:
the serial number of the certificate.

getStartDate

public Date getStartDate()
Returns the starting date of the certificate.

Returns:
the starting date of the certificate.

getEndDate

public Date getEndDate()
Returns the ending date of the certificate.

Returns:
the ending date of the certificate.

getCN

public String getCN()
Returns the common name of the certificate.

Usually this is the hostname of the server.

Returns:
the common name of the certificate.

getEmail

public String getEmail()
Returns the e-mail address associated with the certificate.

Returns:
the e-mail address associated with the certificate.

getOU

public String getOU()
Returns the organizational unit associated with the certificate.

Returns:
the organizational unit associated with the certificate.

getOrg

public String getOrg()
Returns the organization associated with the certificate.

Returns:
the organization associated with the certificate.

getLocality

public String getLocality()
Returns the locality (or city) associated with the certificate.

Returns:
the locality (or city) associated with the certificate.

getState

public String getState()
Returns the state associated with the certificate.

Returns:
the state associated with the certificate.

getCountry

public String getCountry()
Returns the country associated with the certificate.

Returns:
the country associated with the certificate.

getIssuerCN

public String getIssuerCN()
Returns the common name of the certificate issuer.

Returns:
the common name of the certificate issuer.

getIssuerEmail

public String getIssuerEmail()
Returns the e-mail address associated with the certificate issuer.

Returns:
the e-mail address associated with the certificate issuer.

getIssuerOU

public String getIssuerOU()
Returns the organizational unit associated with the certificate issuer.

Returns:
the organizational unit associated with the certificate issuer.

getIssuerOrg

public String getIssuerOrg()
Returns the organization associated with the certificate issuer.

Returns:
the organization associated with the certificate issuer.

getIssuerLocality

public String getIssuerLocality()
Returns the locality (or city) associated with the certificate issuer.

Returns:
the locality (or city) associated with the certificate issuer.

getIssuerState

public String getIssuerState()
Returns the state associated with the certificate issuer.

Returns:
the state associated with the certificate issuer.

getIssuerCountry

public String getIssuerCountry()
Returns the country associated with the certificate issuer.

Returns:
the country associated with the certificate issuer.

getBitStrength

public int getBitStrength()
Return the bit strength of the RSA certificate

Returns:
the bit strength of the RSA certificate (-1 if unknown).


Copyright © 2000-12 Glub Tech, Inc. All Rights Reserved.