cgl.narada.service.security.securityprovider
Class ROOTSecurityProvider

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

public class ROOTSecurityProvider
extends Object

This is a temporary placeholder class for acting as a root security provider !
Created on Apr 13, 2005


Constructor Summary
ROOTSecurityProvider()
           
 
Method Summary
static void DeleteCertificate(CertificateManager certMan, String entityName)
          Deletes the certificate and private key for the named entity
static void GenerateROOTCertificate(CertificateManager certMan)
          Generates NEW ROOT certificate for use of this ROOT Provider.
static void IssueSignedCertificate(CertificateManager certMan, String entityName, String DNAME, String validityDays)
          Issues a new digitally signed certificate.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROOTSecurityProvider

public ROOTSecurityProvider()
Method Detail

GenerateROOTCertificate

public static void GenerateROOTCertificate(CertificateManager certMan)
Generates NEW ROOT certificate for use of this ROOT Provider. If used, then need to resign all public keys of the entities that were issued the certificates from the Root provider. By default the validity is set to 1 year (365 days)


IssueSignedCertificate

public static void IssueSignedCertificate(CertificateManager certMan,
                                          String entityName,
                                          String DNAME,
                                          String validityDays)
Issues a new digitally signed certificate. This certificate is signed by the ROOT Provider's private key.

Parameters:
certMan -
entityName - - The name of the entity for which the certificate is to be issued. This will also be the alias of the entity in the keystore. Make sure these are unique for different entities
DNAME - - The complete Distinguished Name of the entity. If null, a default is used CN=entityName,OU=Community Grids Lab,O=Indiana University,L=Bloomington,C=US
validityDays - - The number of days for which this certificate is valid

DeleteCertificate

public static void DeleteCertificate(CertificateManager certMan,
                                     String entityName)
Deletes the certificate and private key for the named entity

Parameters:
certMan -
entityName - - The entity whose keys are to be deleted

main

public static void main(String[] args)


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