edu.nyu.cs.pdsg.util
Interface KeyDirectoryInterface

All Known Implementing Classes:
HRShadowKeyDirectory, ShadowKeyDirectory

public interface KeyDirectoryInterface


Method Summary
 java.security.PrivateKey getPrivateKey(java.lang.String keyName)
          Returns the private key associated with a given name (or null if not supported)
 java.security.PublicKey getPublicKey(java.lang.String keyName)
          Returns the public key associated with a given name (or null if not supported)
 boolean providesPrivate()
           
 boolean providesPublic()
           
 

Method Detail

providesPublic

public boolean providesPublic()
Returns:
true if this implementation can provide public keys

providesPrivate

public boolean providesPrivate()
Returns:
true if this implementation can provide privatekeys

getPublicKey

public java.security.PublicKey getPublicKey(java.lang.String keyName)
Returns the public key associated with a given name (or null if not supported)

Parameters:
keyName - the name of the key
Returns:
the PublicKey associated with the name

getPrivateKey

public java.security.PrivateKey getPrivateKey(java.lang.String keyName)
Returns the private key associated with a given name (or null if not supported)

Parameters:
keyName - the name of the key
Returns:
the PrivateKey associated with the name


Copyright (c) 2002-2003 New York University RLAB