com.glub.secureftp.bean
Class SSLCertificate

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

public class SSLCertificate
extends java.lang.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(java.security.cert.X509Certificate cert)
          Create a SSLCertificate object.
 
Method Summary
 int getBitStrength()
          Return the bit strength of the RSA certificate
 java.lang.String getCN()
          Returns the common name of the certificate.
 java.lang.String getCountry()
          Returns the country associated with the certificate.
 java.lang.String getEmail()
          Returns the e-mail address associated with the certificate.
 java.util.Date getEndDate()
          Returns the ending date of the certificate.
 java.lang.String getFingerprint()
          Returns the crypto fingerprint of the certificate.
 java.lang.String getIssuerCN()
          Returns the common name of the certificate issuer.
 java.lang.String getIssuerCountry()
          Returns the country associated with the certificate issuer.
 java.lang.String getIssuerEmail()
          Returns the e-mail address associated with the certificate issuer.
 java.lang.String getIssuerLocality()
          Returns the locality (or city) associated with the certificate issuer.
 java.lang.String getIssuerOrg()
          Returns the organization associated with the certificate issuer.
 java.lang.String getIssuerOU()
          Returns the organizational unit associated with the certificate issuer.
 java.lang.String getIssuerState()
          Returns the state associated with the certificate issuer.
 java.lang.String getLocality()
          Returns the locality (or city) associated with the certificate.
 java.lang.String getOrg()
          Returns the organization associated with the certificate.
 java.lang.String getOU()
          Returns the organizational unit associated with the certificate.
 java.lang.String getSerialNumber()
          Returns the serial number of the certificate.
 java.util.Date getStartDate()
          Returns the starting date of the certificate.
 java.lang.String getState()
          Returns the state associated with the certificate.
 java.security.cert.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(java.security.cert.X509Certificate cert)
Create a SSLCertificate object.

Parameters:
cert - the X509 certificate.
Method Detail

getX509Certificate

public java.security.cert.X509Certificate getX509Certificate()
Returns the X.509 certificate.

Returns:
the X.509 certificate

getFingerprint

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

Returns:
the crypto fingerprint of the certificate.

getSerialNumber

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

Returns:
the serial number of the certificate.

getStartDate

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

Returns:
the starting date of the certificate.

getEndDate

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

Returns:
the ending date of the certificate.

getCN

public java.lang.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 java.lang.String getEmail()
Returns the e-mail address associated with the certificate.

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

getOU

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

Returns:
the organizational unit associated with the certificate.

getOrg

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

Returns:
the organization associated with the certificate.

getLocality

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

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

getState

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

Returns:
the state associated with the certificate.

getCountry

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

Returns:
the country associated with the certificate.

getIssuerCN

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

Returns:
the common name of the certificate issuer.

getIssuerEmail

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

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

getIssuerOU

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

Returns:
the organizational unit associated with the certificate issuer.

getIssuerOrg

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

Returns:
the organization associated with the certificate issuer.

getIssuerLocality

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

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

getIssuerState

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

Returns:
the state associated with the certificate issuer.

getIssuerCountry

public java.lang.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-10 Glub Tech, Inc. All Rights Reserved.