Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.util
Class EncryptedProperties  view EncryptedProperties download EncryptedProperties.java

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bymindbright.util.EncryptedProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class EncryptedProperties
extends java.util.Properties


Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
static java.lang.String CIPHER_KEY
           
static java.lang.String CONTENTS_KEY
           
static java.lang.String HASH_KEY
           
private  boolean isNormalPropsFile
           
static java.lang.String PROPS_HEADER
           
static java.lang.String SIZE_KEY
           
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
EncryptedProperties()
           
EncryptedProperties(java.util.Properties defaultProperties)
           
 
Method Summary
 boolean isNormalPropsFile()
           
 void load(java.io.InputStream in, java.lang.String password)
           
 void save(java.io.OutputStream out, java.lang.String header, java.lang.String password, java.lang.String cipherName)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HASH_KEY

public static final java.lang.String HASH_KEY
See Also:
Constant Field Values

CIPHER_KEY

public static final java.lang.String CIPHER_KEY
See Also:
Constant Field Values

CONTENTS_KEY

public static final java.lang.String CONTENTS_KEY
See Also:
Constant Field Values

SIZE_KEY

public static final java.lang.String SIZE_KEY
See Also:
Constant Field Values

PROPS_HEADER

public static final java.lang.String PROPS_HEADER
See Also:
Constant Field Values

isNormalPropsFile

private boolean isNormalPropsFile
Constructor Detail

EncryptedProperties

public EncryptedProperties()

EncryptedProperties

public EncryptedProperties(java.util.Properties defaultProperties)
Method Detail

isNormalPropsFile

public boolean isNormalPropsFile()

save

public void save(java.io.OutputStream out,
                 java.lang.String header,
                 java.lang.String password,
                 java.lang.String cipherName)
          throws java.io.IOException

load

public void load(java.io.InputStream in,
                 java.lang.String password)
          throws java.io.IOException,
                 mindbright.security.AccessDeniedException