|
Oracle Containers for J2EE Security Java API Reference 10g Release 3 (10.1.3.1.0) B32115-01 |
||||||||||
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. <p/> 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. <p/> 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.
Field Summary | |
static int |
JAAS_MODE_DOAS |
static int |
JAAS_MODE_DOAS_PRIVILEGED |
static int |
JAAS_MODE_NULL |
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 |
getHomeInstanceXMLConfig() Returns the JAZNConfig that points to $OH/j2ee/home/config/system-jazn-data.xml |
int |
getJaasMode() Returns the JAAS mode value |
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. |
static JAZNConfig |
getOC4JInstanceConfig() Returns the OC4J instance-specific JAZNConfig instance This usually refers to $OH/j2ee/<instance>/config/jazn.xml |
static JAZNConfig |
getOC4JInstanceXMLConfig() Returns the JAZNConfig that points to $OH/j2ee/<instance>/config/system-jazn-data.xml |
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.util.Properties |
getProperties() |
java.util.Properties |
getPropertiesCopy() |
java.lang.String |
getProperty(java.lang.String key) Gets a JAZN property value <p/> This method first calls SecurityManager.checkPermission with JAZNPermission("getProperty."+key) to ensure the caller has permission to retrive the 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. |
java.lang.String |
getSecurityProviderClassName() Get the name of the callback class for the current instance of JAZNConfig |
JAZNConfig |
getSecurityProviderJAZNConfig() |
static JAZNConfig |
getXMLConfig(java.lang.String jaznDataPath) Returns the JAZNConfig that points to the specified jazn-data.xml |
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. |
void |
removeProperty(java.lang.String key) |
static void |
setJAASLoginConfigProvider(boolean force) Set JAZN as JAAS login configuration provider |
static void |
setJAASPolicyProvider(boolean force) Set JAZN as JAAS policy provider |
static void |
setJAZNConfigSystemProperty(java.io.File configDir) Set JAZN system property based on the configuration directory to support OC4J "-config" command-line directive |
void |
setProperty(java.lang.String key, java.lang.String value) |
static void |
setSecurityProperties() |
static void |
setSecurityProperties(boolean force) Set security properties for JAZN |
void |
setSecurityProviderJAZNConfig(JAZNConfig jaznConfig) |
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(int indentation, java.io.Writer writer, boolean xmlns) 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. |
void |
writeXML(java.io.Writer writer, boolean xmlns) 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 |
Field Detail |
public static int JAAS_MODE_NULL
public static int JAAS_MODE_DOAS
public static int JAAS_MODE_DOAS_PRIVILEGED
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)
node
- the DOM node from which the new JAZNConfig is to be instantiatedMethod Detail |
public java.lang.String getProviderType()
public int getJaasMode()
public java.net.URL getDeploymentURL()
public java.lang.String getLocationPath()
public java.net.URL getLocationURL()
public java.lang.String getDefaultRealm()
public int getPersistenceMode()
public JAZNConfig getDelegate()
public final boolean expandProperties()
public java.util.Properties getProperties()
public java.util.Properties getPropertiesCopy()
public java.lang.String getSecurityProviderClassName()
public java.lang.ClassLoader getClassLoader()
public oracle.security.jazn.spi.JAZNProvider getJAZNProvider()
public LoginModuleManager getLoginModuleManager()
java.lang.SecurityException
- if the caller does not have permission to invoke this methodpublic RealmManager getRealmManager()
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()
java.lang.SecurityException
- if the caller does not have permission to invoke this methodpublic java.lang.String getProperty(java.lang.String key)
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 void setProperty(java.lang.String key, java.lang.String value)
public void removeProperty(java.lang.String key)
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(java.io.Writer writer, boolean xmlns) throws java.io.IOException
writer
- the specified writerxmlns
- true if XML namespace is to be written, false otherwisejava.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 void writeXML(int indentation, java.io.Writer writer, boolean xmlns) throws java.io.IOException
indentation
- the indentation levelwriter
- the specified writerxmlns
- true if XML namespace is to be written, false otherwisejava.io.IOException
public java.lang.String toString()
public static JAZNConfig getXMLConfig(java.lang.String jaznDataPath)
public static JAZNConfig getHomeInstanceXMLConfig()
JAZNInitException
- if an error occurs during initializationpublic static JAZNConfig getOC4JInstanceXMLConfig()
JAZNInitException
- if an error occurs during initializationpublic static JAZNConfig getOC4JInstanceConfig()
public static final JAZNConfig getJAZNConfig()
public static void setJAASLoginConfigProvider(boolean force)
public static void setJAASPolicyProvider(boolean force)
public static void setSecurityProperties(boolean force)
force
- if set to true
, will set JAZN as both JAAS login configuration provider and policy provider (via security properties), regardless of whether the relevant security properties are already setpublic static void setSecurityProperties()
public static void setJAZNConfigSystemProperty(java.io.File configDir)
public final JAZNConfig getSecurityProviderJAZNConfig()
public final void setSecurityProviderJAZNConfig(JAZNConfig jaznConfig)
|
Oracle Containers for J2EE Security Java API Reference 10g Release 3 (10.1.3.1.0) B32115-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |