com.aol.acc
Class AccSecurityManager

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

public class AccSecurityManager
extends AccBase

IAccSecurityManager is for management of user certificates.


Method Summary
 void authenticate(java.lang.String password)
          Authenticates to the certificate store.

 void exportCertificates(java.lang.String pkcs12fileSpec, java.lang.String pkcs12Password, java.lang.String tokenPassword, AccCertificate certs)
          Exports certificates from the certificate store to a PKCS #12 file.

 AccCertificate getCertificates(int usage)
          Gets certificates from the certificate store.

 boolean getPasswordInited()
          Whether the InitPassword has been called for the cert database
 AccCertificate importCertificates(java.lang.String pkcs12fileSpec, java.lang.String pkcs12Password)
          Imports certificates from a PKCS #12 file into the certificate store.
If successful, the imported certs are returned in "certs" as a list of
VARIANTs containing IAccCertificate.

 void initPassword(java.lang.String password)
          Sets the initial password on the certificate store.

 void resetStore()
          Clears the certificate database and invalidates certs.

 
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

initPassword

public void initPassword(java.lang.String password)
                  throws AccException
Sets the initial password on the certificate store.

Throws:
AccException

authenticate

public void authenticate(java.lang.String password)
                  throws AccException
Authenticates to the certificate store.

Throws:
AccException

getCertificates

public AccCertificate getCertificates(int usage)
                               throws AccException
Gets certificates from the certificate store.

Throws:
AccException

importCertificates

public AccCertificate importCertificates(java.lang.String pkcs12fileSpec,
                                         java.lang.String pkcs12Password)
                                  throws AccException
Imports certificates from a PKCS #12 file into the certificate store.
If successful, the imported certs are returned in "certs" as a list of
VARIANTs containing IAccCertificate.

Throws:
AccException

exportCertificates

public void exportCertificates(java.lang.String pkcs12fileSpec,
                               java.lang.String pkcs12Password,
                               java.lang.String tokenPassword,
                               AccCertificate certs)
                        throws AccException
Exports certificates from the certificate store to a PKCS #12 file.

Throws:
AccException

resetStore

public void resetStore()
                throws AccException
Clears the certificate database and invalidates certs.

Throws:
AccException

getPasswordInited

public boolean getPasswordInited()
                          throws AccException
Whether the InitPassword has been called for the cert database

Throws:
AccException