Java Globus API: Class PKCS11CertUtil

org.globus.pkcs11
Class PKCS11CertUtil

java.lang.Object
  |
  +--org.globus.pkcs11.PKCS11CertUtil

public class PKCS11CertUtil
extends Object

Contains various utility functions related to dealing with certificates and slightly related to PKCS11. Some of this functionality needs to come out of this class and be better integrated with the org.globus. security.CertUtil class but for the moment, it works.


Constructor Summary
PKCS11CertUtil()
           
 
Method Summary
static org.globus.security.GlobusProxy createProxy(org.globus.pkcs11.X509Certificate userCert, com.ibm.pkcs11.PKCS11Object userPrivateKeyObj, int bits, int hours, boolean limited)
          Creates a Globus Proxy object.
static org.globus.pkcs11.X509Certificate retrieveCertificate(String certLabel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11CertUtil

public PKCS11CertUtil()
Method Detail

createProxy

public static org.globus.security.GlobusProxy createProxy(org.globus.pkcs11.X509Certificate userCert,
                                                          com.ibm.pkcs11.PKCS11Object userPrivateKeyObj,
                                                          int bits,
                                                          int hours,
                                                          boolean limited)
                                                   throws PKCS11Exception
Creates a Globus Proxy object. This function is aware of PKCS11 because it needs to deal with a private key handle rather than a private key, and also deals with the PKCS11 signing.

retrieveCertificate

public static org.globus.pkcs11.X509Certificate retrieveCertificate(String certLabel)
                                                             throws CertificateException