Oracle Application Server JAAS Provider API Reference
10g Release 2 (10.1.2)

B14019-02


oracle.security.jazn
Class JAZNWebAppConfig

java.lang.Object
  extended byoracle.security.jazn.JAZNWebAppConfig


public class JAZNWebAppConfig
extends java.lang.Object

This class represents a <jazn-web-app> Configuration instance.


Constructor Summary
JAZNWebAppConfig(org.w3c.dom.Node node)
Creates a new JAZNWebAppConfig instance from the specified DOM node.
JAZNWebAppConfig(java.util.Properties props)
Creates a new JAZNWebAppConfig instance from the specified properties.

Method Summary
java.lang.String getAuthenticationMethod()
java.lang.String getDoAsPrivilegedMode()
Returns the DoAsPrivileged mode
java.lang.String getProperty(java.lang.String key)
Gets a JAZN property value
java.lang.String getRunAsMode()
Returns the RunAs mode
static java.util.Properties parseJAZNWebAppConfig(org.w3c.dom.Node node)
Given a DOM node representing the <jazn-web-app> element, return the parsed properties.
static void parseJAZNWebAppConfig(org.w3c.dom.Node node, java.util.Properties props)
Given a DOM node representing the <jazn-web-app> element, sets the parsed properties.
java.lang.String toString()
void writeXML(int indentation, java.io.Writer writer)
Serializes the content of this JAZNWebAppConfig instance to the specified writer.
void writeXML(java.io.Writer writer)
Serializes the content of this JAZNWebAppConfig instance to the specified writer.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

JAZNWebAppConfig

public JAZNWebAppConfig(java.util.Properties props)
Creates a new JAZNWebAppConfig instance from the specified properties.

JAZNWebAppConfig

public JAZNWebAppConfig(org.w3c.dom.Node node)
Creates a new JAZNWebAppConfig instance from the specified DOM node.
Parameters:
node - the DOM node from which the new JAZNWebAppConfig instance is instantiated.

Method Detail

getProperty

public java.lang.String getProperty(java.lang.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:
java.lang.SecurityException - if the caller does not have permission to invoke this method

getAuthenticationMethod

public java.lang.String getAuthenticationMethod()

getRunAsMode

public java.lang.String getRunAsMode()
Returns the RunAs mode
Returns:
the RunAs mode

getDoAsPrivilegedMode

public java.lang.String getDoAsPrivilegedMode()
Returns the DoAsPrivileged mode
Returns:
the DoAsPrivileged mode

parseJAZNWebAppConfig

public static void parseJAZNWebAppConfig(org.w3c.dom.Node node,
                                         java.util.Properties props)
Given a DOM node representing the <jazn-web-app> element, sets the parsed properties.
Parameters:
node - the DOM node representing the <jazn-web-app> element.

parseJAZNWebAppConfig

public static java.util.Properties parseJAZNWebAppConfig(org.w3c.dom.Node node)
Given a DOM node representing the <jazn-web-app> element, return the parsed properties.
Parameters:
node - the DOM node representing the <jazn-web-app> element.
Returns:
the parsed properties

writeXML

public void writeXML(java.io.Writer writer)
              throws java.io.IOException
Serializes the content of this JAZNWebAppConfig instance to the specified writer.
Parameters:
writer - the specified writer
Throws:
java.io.IOException

writeXML

public void writeXML(int indentation,
                     java.io.Writer writer)
              throws java.io.IOException
Serializes the content of this JAZNWebAppConfig instance to the specified writer.
Parameters:
indentation - the indentation level
writer - the specified writer
Throws:
java.io.IOException

toString

public java.lang.String toString()

Oracle Application Server JAAS Provider API Reference
10g Release 2 (10.1.2)

B14019-02


Copyright © 2004, 2005, Oracle. All rights reserved.