xjava.security
Class IJCE_Properties

java.lang.Object
  |
  +--xjava.security.IJCE_Properties

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 $

Author:
David Hopwood, Jill Baker, Raif S. Naffah

Field Summary
(package private) static java.lang.String LIB_DIRNAME
          The name of the directory in which the properties file and (if applicable) native libraries are found.
(package private) static java.lang.String PRODUCT_NAME
          The common name for this class library.
(package private) static java.lang.String[] PROPERTIES_FILES
          The filename of the properties file.
 
Constructor Summary
(package private) IJCE_Properties()
           
 
Method Summary
(package private) static void ()
           
(package private) static java.lang.String getLibraryPath()
          Returns the path of the library directory.
(package private) static java.lang.String getProperty(java.lang.String key)
          Gets the value of a property.
(package private) static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Gets the value of a property, or returns defaultValue if the property was not set.
(package private) static void list(java.io.PrintStream out)
          Lists the properties to the PrintStream out.
(package private) static void list(java.io.PrintWriter out)
          Lists the properties to the PrintWriter out.
(package private) static java.util.Enumeration propertyNames()
          Returns an enumeration of all the property names.
(package private) static void save(java.io.OutputStream os, java.lang.String comment)
          Saves the properties to the OutputStream os, in the format used by java.util.Properties.save.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRODUCT_NAME

static final java.lang.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.

LIB_DIRNAME

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

PROPERTIES_FILES

static final java.lang.String[] PROPERTIES_FILES
The filename of the properties file.
Constructor Detail

IJCE_Properties

IJCE_Properties()
Method Detail

static void ()

getLibraryPath

static java.lang.String getLibraryPath()
                                throws java.io.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).

Throws:
java.io.IOException - if an error occurred during intialization, preventing the path from being determined.

save

static void save(java.io.OutputStream os,
                 java.lang.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.

getProperty

static java.lang.String getProperty(java.lang.String key)
Gets the value of a property.

getProperty

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

propertyNames

static java.util.Enumeration propertyNames()
Returns an enumeration of all the property names.

list

static void list(java.io.PrintStream out)
Lists the properties to the PrintStream out.

list

static void list(java.io.PrintWriter out)
Lists the properties to the PrintWriter out.