org.keyczar.interfaces
Interface KeyczarReader

All Known Subinterfaces:
EncryptedReader
All Known Implementing Classes:
MockKeyczarReader

public interface KeyczarReader

Abstract class for KeyczarReaders. Typically, these will read key files from disk, but may be implemented to read from arbitrary sources.

Author:
steveweis@gmail.com (Steve Weis)

Method Summary
 java.lang.String getKey(int version)
          Returns an input stream of a particular version of a key
 java.lang.String getMetadata()
           
 

Method Detail

getKey

java.lang.String getKey(int version)
                        throws KeyczarException
Returns an input stream of a particular version of a key

Parameters:
version - The Version number of the key to read
Returns:
A JSON string data representation of a Key
Throws:
KeyczarException - If an error occurs while attempting to read data, e.g. an IOException

getMetadata

java.lang.String getMetadata()
                             throws KeyczarException
Returns:
A JSON string representation of KeyMetadata
Throws:
KeyczarException - If an error occurs while attempting to read data, e.g. an IOException