org.cert.cc.encryption
Class AbstractProcessor

java.lang.Object
  extended by org.cert.cc.encryption.AbstractProcessor
Direct Known Subclasses:
AbstractPGPProcessor, AbstractSMIMEProcessor

public abstract class AbstractProcessor
extends Object

AbstractProcessor is the base class for all DescriptionProcessors

© 2009 Carnegie Mellon University

Author:
Steve Scholnick

Field Summary
protected  Logger log
          Logger for any sub-class to use
 
Constructor Summary
protected AbstractProcessor()
          Constructor
 
Method Summary
protected  String getApplicationProperty(String key)
          Returns an Application property value as a String.
protected  char[] getPassword(String propertyKey)
          Returns a property value as an array of characters suitable for a password.
protected  String getSecretsProperty(String key)
          Returns a Secrets property value as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Logger log
Logger for any sub-class to use

Constructor Detail

AbstractProcessor

protected AbstractProcessor()
Constructor

Method Detail

getApplicationProperty

protected final String getApplicationProperty(String key)
Returns an Application property value as a String. If the key is not found, null is returned.

Parameters:
key - Property key
Returns:
Property value

getPassword

protected final char[] getPassword(String propertyKey)
                            throws IOException
Returns a property value as an array of characters suitable for a password. If the key is not found, null is returned.

Parameters:
propertyKey - Property key
Returns:
Array of characters suitable for a password
Throws:
IOException - If unable to read the properties file

getSecretsProperty

protected final String getSecretsProperty(String key)
                                   throws IOException
Returns a Secrets property value as a String. If the key is not found, null is returned.

Parameters:
key - Property key
Returns:
Property value
Throws:
IOException - If unable to read the properties file


Copyright © 2012 Carnegie Mellon University