xjava.security

Class IJCE_Properties


(package private) class IJCE_Properties
extends java.lang.Object

This is a support class providing facilities needed to load and manage properties. It is used by other classes in java.security.*; see those classes for further documentation.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.4 $

Authors:
David Hopwood
Jill Baker
Raif S. Naffah

Field Summary

(package private) static String
LIB_DIRNAME
The name of the directory in which the properties file and (if applicable) native libraries are found.
(package private) static String
PRODUCT_NAME
The common name for this class library.
(package private) static String[]
PROPERTIES_FILES
The filename of the properties file.

Method Summary

(package private) static String
getLibraryPath()
Returns the path of the library directory.
(package private) static String
getProperty(String key)
Gets the value of a property.
(package private) static String
getProperty(String key, String defaultValue)
Gets the value of a property, or returns defaultValue if the property was not set.
(package private) static void
list(PrintStream out)
Lists the properties to the PrintStream out.
(package private) static void
list(PrintWriter out)
Lists the properties to the PrintWriter out.
(package private) static Enumeration
propertyNames()
Returns an enumeration of all the property names.
(package private) static void
save(OutputStream os, String comment)
Saves the properties to the OutputStream os, in the format used by java.util.Properties.save.

Field Details

LIB_DIRNAME

(package private) static final String LIB_DIRNAME
The name of the directory in which the properties file and (if applicable) native libraries are found.


PRODUCT_NAME

(package private) static final String PRODUCT_NAME
The common name for this class library. This is used for error messages, because most of the code for this class is duplicated between Cryptix and IJCE.


PROPERTIES_FILES

(package private) static final String[] PROPERTIES_FILES
The filename of the properties file.

Method Details

getLibraryPath

(package private) static String getLibraryPath()
            throws IOException
Returns the path of the library directory. The name of this directory is given by the LIB_DIRNAME constant.

The returned path is always absolute, and ends with a file separator character (e.g. "/" on Unix).


getProperty

(package private) static String getProperty(String key)
Gets the value of a property.


getProperty

(package private) static String getProperty(String key,
                                            String defaultValue)
Gets the value of a property, or returns defaultValue if the property was not set.


list

(package private) static void list(PrintStream out)
Lists the properties to the PrintStream out.


list

(package private) static void list(PrintWriter out)
Lists the properties to the PrintWriter out.


propertyNames

(package private) static Enumeration propertyNames()
Returns an enumeration of all the property names.


save

(package private) static void save(OutputStream os,
                                   String comment)
Saves the properties to the OutputStream os, in the format used by java.util.Properties.save. The string comment is written as a comment in the first line of the output.