cgl.narada.service.security.impl
Class EntityKeyManagementImpl

java.lang.Object
  extended by cgl.narada.service.security.impl.EntityKeyManagementImpl
All Implemented Interfaces:
EntityKeyManagement

public class EntityKeyManagementImpl
extends Object
implements EntityKeyManagement

Performs KeyManagement releated operations for an entity. $Date$ $Revision$


Constructor Summary
EntityKeyManagementImpl()
           
 
Method Summary
 KeyPair generatePersonalKeyPair(String algo, int strength, String provider, String alias)
          A method that can be used by a client to generate a personal-key pair, a given client may specifiy the algorithm to do so, and also the provider
 PrivateKey getPersonalPrivateKey(String alias)
          Retrieve the personal public key associated with an entity
 PublicKey getPersonalPublicKey(String alias)
          Retrieve the personal public key associated with an entity
 SecretKey getTemplateKey(int templateId)
          Get the secret template key associated with a templateId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityKeyManagementImpl

public EntityKeyManagementImpl()
                        throws ServiceException
Throws:
ServiceException
Method Detail

generatePersonalKeyPair

public KeyPair generatePersonalKeyPair(String algo,
                                       int strength,
                                       String provider,
                                       String alias)
                                throws ServiceException
A method that can be used by a client to generate a personal-key pair, a given client may specifiy the algorithm to do so, and also the provider

Specified by:
generatePersonalKeyPair in interface EntityKeyManagement
Throws:
ServiceException

getPersonalPublicKey

public PublicKey getPersonalPublicKey(String alias)
                               throws ServiceException
Retrieve the personal public key associated with an entity

Specified by:
getPersonalPublicKey in interface EntityKeyManagement
Throws:
ServiceException

getPersonalPrivateKey

public PrivateKey getPersonalPrivateKey(String alias)
                                 throws ServiceException
Retrieve the personal public key associated with an entity

Throws:
ServiceException

getTemplateKey

public SecretKey getTemplateKey(int templateId)
                         throws ServiceException
Get the secret template key associated with a templateId

Specified by:
getTemplateKey in interface EntityKeyManagement
Throws:
ServiceException


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