com.aol.acc
Class AccCertificate

java.lang.Object
  extended by com.aol.acc.AccBase
      extended by com.aol.acc.AccCertificate

public class AccCertificate
extends AccBase

The IAccCertificate interface is used to wrap X.509 certificate objects.


Method Summary
 AccVariant getChain(boolean wantRoot)
          Get this cert's cert chain, optionally including the root cert, as a list of IAccCertificates.

 java.util.Date getExpireTime()
          The time the certificate expires
 java.lang.String getIssuerCommonName()
          The issuer name
 java.lang.String getIssuerDomainComponent()
          The issuer domain component
 java.lang.String getIssuerOrg()
          The issuer organization
 java.lang.String getIssuerOrgUnit()
          The issuer organizational unit
 java.util.Date getIssueTime()
          The time the certificate was issued
 java.lang.String getName()
          The friendly name for the certificate
 java.lang.String getSerialNumber()
          The serial number of the certificate
 java.lang.String getSubjectCommonName()
          The subject name for the certificate (CN)
 java.lang.String getSubjectDomainComponent()
          The domain component for the certificate (DC)
 java.lang.String getSubjectEmailAddress()
          The email address for the certificate
 java.lang.String getSubjectOrg()
          The organization name for the certificate (O)
 java.lang.String getSubjectOrgUnit()
          The organizational unit for the certificate (OU)
 int getTrusted()
          The categories in which this certificate has been trusted; values are from AccCertificateTrustFlags
 int getUsage()
          The certificate usage type; values are from AccCertificateUsage.
 void trust(int trustFlags, boolean permanent)
          Explicitly trust this cert for the specified categories, either for the current session or permanently.

 void verify(int usage)
          Verifies that the certificate is valid at the current time, for the specified usages.

 
Methods inherited from class com.aol.acc.AccBase
compareHandle, equals
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChain

public AccVariant getChain(boolean wantRoot)
                    throws AccException
Get this cert's cert chain, optionally including the root cert, as a list of IAccCertificates.

Throws:
AccException

verify

public void verify(int usage)
            throws AccException
Verifies that the certificate is valid at the current time, for the specified usages.

Throws:
AccException

trust

public void trust(int trustFlags,
                  boolean permanent)
           throws AccException
Explicitly trust this cert for the specified categories, either for the current session or permanently.

Throws:
AccException

getName

public java.lang.String getName()
                         throws AccException
The friendly name for the certificate

Throws:
AccException

getSerialNumber

public java.lang.String getSerialNumber()
                                 throws AccException
The serial number of the certificate

Throws:
AccException

getIssueTime

public java.util.Date getIssueTime()
                            throws AccException
The time the certificate was issued

Throws:
AccException

getExpireTime

public java.util.Date getExpireTime()
                             throws AccException
The time the certificate expires

Throws:
AccException

getUsage

public int getUsage()
             throws AccException
The certificate usage type; values are from AccCertificateUsage.

Throws:
AccException

getSubjectCommonName

public java.lang.String getSubjectCommonName()
                                      throws AccException
The subject name for the certificate (CN)

Throws:
AccException

getSubjectOrg

public java.lang.String getSubjectOrg()
                               throws AccException
The organization name for the certificate (O)

Throws:
AccException

getSubjectOrgUnit

public java.lang.String getSubjectOrgUnit()
                                   throws AccException
The organizational unit for the certificate (OU)

Throws:
AccException

getSubjectDomainComponent

public java.lang.String getSubjectDomainComponent()
                                           throws AccException
The domain component for the certificate (DC)

Throws:
AccException

getSubjectEmailAddress

public java.lang.String getSubjectEmailAddress()
                                        throws AccException
The email address for the certificate

Throws:
AccException

getIssuerCommonName

public java.lang.String getIssuerCommonName()
                                     throws AccException
The issuer name

Throws:
AccException

getIssuerOrg

public java.lang.String getIssuerOrg()
                              throws AccException
The issuer organization

Throws:
AccException

getIssuerOrgUnit

public java.lang.String getIssuerOrgUnit()
                                  throws AccException
The issuer organizational unit

Throws:
AccException

getIssuerDomainComponent

public java.lang.String getIssuerDomainComponent()
                                          throws AccException
The issuer domain component

Throws:
AccException

getTrusted

public int getTrusted()
               throws AccException
The categories in which this certificate has been trusted; values are from AccCertificateTrustFlags

Throws:
AccException