cgl.narada.service.security.securityprovider
Class KeyToolFacade

java.lang.Object
  extended by cgl.narada.service.security.securityprovider.KeyToolFacade

public class KeyToolFacade
extends Object

Created on Apr 16, 2005


Constructor Summary
KeyToolFacade()
           
 
Method Summary
static void DeleteCertificate(CertificateManager certMan, String clientID)
           
static void ExportCertificate(CertificateManager certMan, String clientID, String certificatePath)
           
static String GenerateCertificateRequest(CertificateManager certMan, String clientID)
           
static void GenerateKey(CertificateManager certMan, String clientID, String DNAME, String validityDays)
          Generates a key for the specified client, using the specified distinguished name
static void GenerateSelfCertifiedCertificate(CertificateManager certMan, String clientID, String DNAME, String validity)
          Generates a self signed certificate
static void ImportCertificate(CertificateManager certMan, String clientID, String importFilePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyToolFacade

public KeyToolFacade()
Method Detail

GenerateKey

public static void GenerateKey(CertificateManager certMan,
                               String clientID,
                               String DNAME,
                               String validityDays)
Generates a key for the specified client, using the specified distinguished name

Parameters:
clientID - - Client Alias
DNAME - - DN of the client
validityDays - - Days for which the certificate should be valid

GenerateSelfCertifiedCertificate

public static void GenerateSelfCertifiedCertificate(CertificateManager certMan,
                                                    String clientID,
                                                    String DNAME,
                                                    String validity)
Generates a self signed certificate

Parameters:
clientID - - ALias of client requesting the certificate
DNAME - - Distinguished name of client
validity - - Validity of certificate in days

GenerateCertificateRequest

public static String GenerateCertificateRequest(CertificateManager certMan,
                                                String clientID)

ImportCertificate

public static void ImportCertificate(CertificateManager certMan,
                                     String clientID,
                                     String importFilePath)

ExportCertificate

public static void ExportCertificate(CertificateManager certMan,
                                     String clientID,
                                     String certificatePath)

DeleteCertificate

public static void DeleteCertificate(CertificateManager certMan,
                                     String clientID)


For comments and suggestions please send e-mail to The NaradaBrokering Project