PKCS11CertUtil (Java Globus API)

org.globus.pkcs11
Class PKCS11CertUtil

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

public class PKCS11CertUtil
extends java.lang.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 GlobusProxy createProxy(iaik.x509.X509Certificate userCert, PKCS11Object userPrivateKeyObj, int bits, int hours, boolean limited)
          Creates a Globus Proxy object.
static iaik.x509.X509Certificate retrieveCertificate(java.lang.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 GlobusProxy createProxy(iaik.x509.X509Certificate userCert,
                                      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.

PKCS11Exception

retrieveCertificate

public static iaik.x509.X509Certificate retrieveCertificate(java.lang.String certLabel)
                                                     throws java.security.cert.CertificateException
java.security.cert.CertificateException