BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.security
Class UserConfigFileManager

java.lang.Object
  |
  +--weblogic.security.UserConfigFileManager

public class UserConfigFileManager
extends java.lang.Object
implements java.util.Map

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
UserConfigFileManager()
          This uses all default file paths.
UserConfigFileManager(java.lang.String configFile, java.lang.String secretFile)
          This overrides all default paths.
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set entrySet()
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object get(java.lang.Object key)
           
 boolean getDebug()
           
static UsernameAndPassword getUsernameAndPassword(java.lang.String propertyName)
          This is a utility method that is used to simply get the username and password from one of a series of options.
static UsernameAndPassword getUsernameAndPassword(java.lang.String configFile, java.lang.String secretFile, java.lang.String propertyName)
          Gets a UsernameAndPassword instance that contains the username and password values from the specified config file; property name is the left side of the property equation.
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 void load()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map t)
           
 void refresh()
          Refresh the in-memory config store if any changes have occurred to the backing store.
 java.lang.Object remove(java.lang.Object key)
           
 void setDebug(boolean x)
           
static void setUsernameAndPassword(UsernameAndPassword values, java.lang.String propertyName)
           
static void setUsernameAndPassword(UsernameAndPassword values, java.lang.String configFile, java.lang.String secretFile, java.lang.String propertyName)
           
 int size()
           
 void store()
          Store any changes to the config file.
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserConfigFileManager

public UserConfigFileManager()
This uses all default file paths.

UserConfigFileManager

public UserConfigFileManager(java.lang.String configFile,
                             java.lang.String secretFile)
This overrides all default paths.
Method Detail

setDebug

public void setDebug(boolean x)


getDebug

public boolean getDebug()


getUsernameAndPassword

public static UsernameAndPassword getUsernameAndPassword(java.lang.String propertyName)
This is a utility method that is used to simply get the username and password from one of a series of options. The algorithm is thus: If both the username and password for the corresponding property are provided, that is used. If just the username is provided, the password is prompted for, without echoing if possible. If neither username nor password is provided, we get it from the default config store. If the default config store is not present but boot.properties and SerializedSystemIni.dat are present (see the fix for CR104008), we use the password from boot.properties.

The properties that will be used are “.username” and “.password” concatenated with the “propertyName” argument.


setUsernameAndPassword

public static void setUsernameAndPassword(UsernameAndPassword values,
                                          java.lang.String propertyName)


getUsernameAndPassword

public static UsernameAndPassword getUsernameAndPassword(java.lang.String configFile,
                                                         java.lang.String secretFile,
                                                         java.lang.String propertyName)
Gets a UsernameAndPassword instance that contains the username and password values from the specified config file; property name is the left side of the property equation.


setUsernameAndPassword

public static void setUsernameAndPassword(UsernameAndPassword values,
                                          java.lang.String configFile,
                                          java.lang.String secretFile,
                                          java.lang.String propertyName)


load

public void load()
          throws java.io.FileNotFoundException,
                 java.io.IOException


refresh

public void refresh()
             throws java.io.IOException
Refresh the in-memory config store if any changes have occurred to the backing store. Note that calling this after having called setEntry() and before having called store() may cause some changes to be lost.


store

public void store()
           throws java.io.FileNotFoundException,
                  java.io.IOException
Store any changes to the config file.


clear

public void clear()
Specified by:
clear in interface java.util.Map


containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map


containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map


entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map


equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map

Overrides:
equals in class java.lang.Object

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map


hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map

Overrides:
hashCode in class java.lang.Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map


keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map


put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map


putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map


remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map


size

public int size()
Specified by:
size in interface java.util.Map


values

public java.util.Collection values()
Specified by:
values in interface java.util.Map


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.