|
JAAS Provider Java API Reference 10g (9.0.4.0.0) B10389-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.
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(Node node) Creates a new JAZNConfig instance from the DOM node. | |
JAZNConfig(Properties props) Creates a new JAZNConfig instance from the given properties. | |
JAZNConfig(String configFile) Creates a new JAZNConfig instance using the specified file. |
Method Summary | |
boolean |
expandProperties() Returns true if properties are expanded by default |
ClassLoader |
getClassLoader() Returns the JAZN class loader |
String |
getDefaultRealm() Returns the default realm |
JAZNConfig |
getDelegate() Returns the delegate JAZNConfig object. |
URL |
getDeploymentURL() Returns the deployment URL |
static JAZNConfig |
getJAZNConfig() |
oracle.security.jazn.spi.JAZNProvider |
getJAZNProvider() Returns the JAZN provider associated with this object. |
String |
getLocationPath() Returns the location path |
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. |
String |
getProperty(String key) Gets a JAZN property value |
String |
getProperty(String key, boolean delegate) |
String |
getProviderType() Returns the provider type |
RealmManager |
getRealmManager() Returns the RealmManager object. |
static Properties |
parseJAZNConfig(Node node) Given a DOM node representing the <jazn> element, return the parsed properties. |
void |
persist() Serializes the content of the JAZNConfig instance. |
String |
toString() |
void |
writeXML(int indentation, Writer writer) Serializes the content of this JAZNConfig instance to the specified writer. |
void |
writeXML(Writer writer) Serializes the content of this JAZNConfig instance to the specified writer. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JAZNConfig(String configFile)
configFile
- the file from which the JAZNConfig instance is instantiated.public JAZNConfig(Properties props)
props
- the properties from which to instantiate a new JAZNConfig instance.public JAZNConfig(Node node)
Method Detail |
public String getProviderType()
public URL getDeploymentURL()
public String getLocationPath()
public URL getLocationURL()
public 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 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.
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.
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.
SecurityException
- if the caller does not have permission to invoke this methodpublic String getProperty(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 retrievedSecurityException
- if the caller does not have permission to invoke this methodpublic String getProperty(String key, boolean delegate)
public static Properties parseJAZNConfig(Node node)
node
- the DOM node representing the <jazn> element.public void persist() throws JAZNException
JAZNException
public void writeXML(Writer writer) throws IOException
writer
- the specified writerIOException
public void writeXML(int indentation, Writer writer) throws IOException
indentation
- the indentation levelwriter
- the specified writerIOException
public String toString()
toString
in class Object
public static JAZNConfig getJAZNConfig()
|
JAAS Provider Java API Reference 10g (9.0.4.0.0) B10389-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |