|
Oracle Application Server JAAS Provider API Reference 10g Release 2 (10.1.2) B14019-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.jazn.JAZNConfig
This class represents a <jazn> Configuration instance.
Multiple JAZNConfig instances can be active in the same JVM process simultaneously, thus allowing for JAZN-XML and JAZN-LDAP to coexist in the same JVM.
Note: Due to the design limitation of the Java2/JAAS security architecture, only 1 security provider can be active at any point in one JVM instance. Thus it would be impossible to have multiple active JAZNConfig instances when Java2/JAAS is enabled in the JVM.
Constructor Summary | |
JAZNConfig(org.w3c.dom.Node node) Creates a new JAZNConfig instance from the DOM node. |
|
JAZNConfig(java.util.Properties props) Creates a new JAZNConfig instance from the given properties. |
|
JAZNConfig(java.lang.String configFile) Creates a new JAZNConfig instance using the specified file. |
Method Summary | |
boolean |
expandProperties() Returns true if properties are expanded by default |
java.lang.ClassLoader |
getClassLoader() Returns the JAZN class loader |
java.lang.String |
getDefaultRealm() Returns the default realm |
JAZNConfig |
getDelegate() Returns the delegate JAZNConfig object. |
java.net.URL |
getDeploymentURL() Returns the deployment URL |
static JAZNConfig |
getJAZNConfig() |
oracle.security.jazn.spi.JAZNProvider |
getJAZNProvider() Returns the JAZN provider associated with this object. |
java.lang.String |
getLocationPath() Returns the location path |
java.net.URL |
getLocationURL() Returns the location URL. |
LoginModuleManager |
getLoginModuleManager() Returns the LoginModuleManager object. |
PermissionClassManager |
getPermissionClassManager() Returns the PermissionClassManager object. |
int |
getPersistenceMode() Returns the JAZN-level persistence mode. |
JAZNPolicy |
getPolicy() Returns the installed JAZNPolicy object. |
PolicyManager |
getPolicyManager() Returns the PolicyManager object. |
PrincipalClassManager |
getPrincipalClassManager() Returns the PrincipalClassManager object. |
java.lang.String |
getProperty(java.lang.String key) Gets a JAZN property value |
java.lang.String |
getProperty(java.lang.String key, boolean delegate) |
java.lang.String |
getProviderType() Returns the provider type |
RealmManager |
getRealmManager() Returns the RealmManager object. |
static java.util.Properties |
parseJAZNConfig(org.w3c.dom.Node node) Given a DOM node representing the <jazn> element, return the parsed properties. |
void |
persist() Serializes the content of the JAZNConfig instance. |
static void |
setJAZNConfigSystemProperty(java.io.File configDir) Set JAZN system property based on the configuration directory to support OC4J "-config" command-line directive |
static void |
setSecurityProperties() Set security properties for JAZN |
java.lang.String |
toString() |
void |
writeXML(int indentation, java.io.Writer writer) Serializes the content of this JAZNConfig instance to the specified writer. |
void |
writeXML(java.io.Writer writer) Serializes the content of this JAZNConfig instance to the specified writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JAZNConfig(java.lang.String configFile)
configFile
- the file from which the JAZNConfig instance is instantiated.public JAZNConfig(java.util.Properties props)
props
- the properties from which to instantiate a new JAZNConfig instance.public JAZNConfig(org.w3c.dom.Node node)
Method Detail |
public java.lang.String getProviderType()
public java.net.URL getDeploymentURL()
public java.lang.String getLocationPath()
public java.net.URL getLocationURL()
public java.lang.String getDefaultRealm()
public int getPersistenceMode()
Note that this may be overridden by component-level persistence mode settings.
public JAZNConfig getDelegate()
public final boolean expandProperties()
public java.lang.ClassLoader getClassLoader()
public oracle.security.jazn.spi.JAZNProvider getJAZNProvider()
public LoginModuleManager getLoginModuleManager()
This method first calls SecurityManager.checkPermission with JAZNPermission("getLoginModuleManager") to ensure that the caller has permission to get the LoginModuleManager object.
java.lang.SecurityException
- if the caller does not have permission to invoke this methodpublic RealmManager getRealmManager()
This method first calls SecurityManager.checkPermission with JAZNPermission("getRealmManager") to ensure that the caller has permission to get the RealmManager object.
java.lang.SecurityException
- if the caller does not have permission to invoke this methodpublic PolicyManager getPolicyManager()
public PermissionClassManager getPermissionClassManager()
public PrincipalClassManager getPrincipalClassManager()
public JAZNPolicy getPolicy()
This method first calls SecurityManager.checkPermission with JAZNPermission("getPolicy") to ensure that the caller has permission to get the RealmManager object.
java.lang.SecurityException
- if the caller does not have permission to invoke this methodpublic java.lang.String getProperty(java.lang.String key)
This method first calls SecurityManager.checkPermission with JAZNPermission("getProperty."+key) to ensure the caller has permission to retrive the JAZN property value.
key
- the key of the property being retrievedjava.lang.SecurityException
- if the caller does not have permission to invoke this methodpublic java.lang.String getProperty(java.lang.String key, boolean delegate)
public static java.util.Properties parseJAZNConfig(org.w3c.dom.Node node)
node
- the DOM node representing the <jazn> element.public void persist() throws JAZNException
JAZNException
public void writeXML(java.io.Writer writer) throws java.io.IOException
writer
- the specified writerjava.io.IOException
public void writeXML(int indentation, java.io.Writer writer) throws java.io.IOException
indentation
- the indentation levelwriter
- the specified writerjava.io.IOException
public java.lang.String toString()
public static JAZNConfig getJAZNConfig()
public static void setSecurityProperties()
public static void setJAZNConfigSystemProperty(java.io.File configDir)
|
Oracle Application Server JAAS Provider API Reference 10g Release 2 (10.1.2) B14019-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |