Oracle9iAS JAAS 9.0.2.0.0

oracle.security.jazn
Class JAZNContext

java.lang.Object
  |
  +--oracle.security.jazn.JAZNContext

public final class JAZNContext
extends Object

This class provides a starting point for obtaining JAZN-related objects and a centralized place for managing JAZN properties.


Method Summary
TypeMethod
static PermissionClassManager getPermissionClassManager()
          Returns the system-wide PermissionClassManager object.
static int getPersistenceMode()
          Returns the JAZN-level persistence mode.
static JAZNPolicy getPolicy()
          Returns the installed JAZNPolicy object.
static PolicyManager getPolicyManager()
          Returns the system-wide PolicyManager object.
static PrincipalClassManager getPrincipalClassManager()
          Returns the system-wide PrincipalClassManager object.
static String getProperty(String key)
          Gets a JAZN property value
static RealmManager getRealmManager()
          Returns the system-wide RealmManager object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRealmManager

public static RealmManager getRealmManager()
Returns the system-wide RealmManager object.

This method first calls SecurityManager.checkPermission with JAZNPermission("getRealmManager") to ensure that the caller has permission to get the RealmManager object.

Returns:
the system-wide RealmManager object.
Throws:
SecurityException - if the caller does not have permission to invoke this method

getPolicyManager

public static PolicyManager getPolicyManager()
Returns the system-wide PolicyManager object.

getPermissionClassManager

public static PermissionClassManager getPermissionClassManager()
Returns the system-wide PermissionClassManager object.

getPrincipalClassManager

public static PrincipalClassManager getPrincipalClassManager()
Returns the system-wide PrincipalClassManager object.

getPolicy

public static JAZNPolicy getPolicy()
Returns the installed JAZNPolicy object.

This method first calls SecurityManager.checkPermission with JAZNPermission("getPolicy") to ensure that the caller has permission to get the RealmManager object.

Returns:
the installed JAZNPolicy object.
Throws:
SecurityException - if the caller does not have permission to invoke this method

getPersistenceMode

public static int getPersistenceMode()
Returns the JAZN-level persistence mode.

Note that this may be overridden by component-level persistence mode settings.

Returns:
the JAZN-level persistence mode

getProperty

public static String getProperty(String key)
Gets a JAZN property value

This method first calls SecurityManager.checkPermission with JAZNPermission("getProperty."+key) to ensure the caller has permission to retrive the JAZN property value.

Parameters:
key - the key of the property being retrieved
Returns:
the value associated with the specified key
Throws:
SecurityException - if the caller does not have permission to invoke this method

Oracle9iAS JAAS 9.0.2.0.0

Copyright 2001, Oracle Corporation. All Rights Reserved.