Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jboss.security.plugins
Class DefaultLoginConfig  view DefaultLoginConfig download DefaultLoginConfig.java

java.lang.Object
  extended byorg.jboss.security.plugins.DefaultLoginConfig
All Implemented Interfaces:
javax.management.DynamicMBean

public class DefaultLoginConfig
extends java.lang.Object
implements javax.management.DynamicMBean

An mbean that uses the default JAAS login configuration file based implementation.

Version:
$Revision: 1.1.4.1 $

Field Summary
private  java.lang.String authConfig
           
private static org.jboss.logging.Logger log
           
private  javax.security.auth.login.Configuration theConfig
           
 
Constructor Summary
DefaultLoginConfig()
          Creates a new instance of DefaultLoginConfig
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the value of the attribute with the name matching the passed string.
 javax.management.AttributeList getAttributes(java.lang.String[] names)
          Returns the values of the attributes with names matching the passed string array.
 java.lang.String getAuthConfig()
          Get the resource path to the JAAS login configuration file to use.
 javax.security.auth.login.Configuration getConfiguration(javax.security.auth.login.Configuration currentConfig)
          Return the Configuration instance managed by this mbean.
 javax.management.MBeanInfo getMBeanInfo()
          Returns the management interface that describes this dynamic resource.
 java.lang.Object invoke(java.lang.String method, java.lang.Object[] args, java.lang.String[] signature)
          Invokes a resource operation.
 void setAttribute(javax.management.Attribute attribute)
          Sets the value of an attribute.
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributeList)
          Sets the values of the attributes passed as an AttributeList of name and new value pairs.
 void setAuthConfig(java.lang.String authConfURL)
          Set the resource path or URL to the JAAS login configuration file to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.jboss.logging.Logger log

authConfig

private java.lang.String authConfig

theConfig

private javax.security.auth.login.Configuration theConfig
Constructor Detail

DefaultLoginConfig

public DefaultLoginConfig()
Creates a new instance of DefaultLoginConfig

Method Detail

getAuthConfig

public java.lang.String getAuthConfig()
Get the resource path to the JAAS login configuration file to use.


setAuthConfig

public void setAuthConfig(java.lang.String authConfURL)
                   throws java.net.MalformedURLException
Set the resource path or URL to the JAAS login configuration file to use. The default is "auth.conf".


getConfiguration

public javax.security.auth.login.Configuration getConfiguration(javax.security.auth.login.Configuration currentConfig)
Return the Configuration instance managed by this mbean. This simply obtains the default Configuration by calling Configuration.getConfiguration. Note that this means this mbean must be the first pushed onto the config stack if it is used.


getAttribute

public java.lang.Object getAttribute(java.lang.String name)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
Description copied from interface: javax.management.DynamicMBean
Returns the value of the attribute with the name matching the passed string.

Specified by:
getAttribute in interface javax.management.DynamicMBean

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] names)
Description copied from interface: javax.management.DynamicMBean
Returns the values of the attributes with names matching the passed string array.

Specified by:
getAttributes in interface javax.management.DynamicMBean

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Description copied from interface: javax.management.DynamicMBean
Returns the management interface that describes this dynamic resource. It is the responsibility of the implementation to make sure the description is accurate.

Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

invoke

public java.lang.Object invoke(java.lang.String method,
                               java.lang.Object[] args,
                               java.lang.String[] signature)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Description copied from interface: javax.management.DynamicMBean
Invokes a resource operation.

Specified by:
invoke in interface javax.management.DynamicMBean

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Description copied from interface: javax.management.DynamicMBean
Sets the value of an attribute. The attribute and new value are passed in the name value pair Attribute.

Specified by:
setAttribute in interface javax.management.DynamicMBean

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributeList)
Description copied from interface: javax.management.DynamicMBean
Sets the values of the attributes passed as an AttributeList of name and new value pairs.

Specified by:
setAttributes in interface javax.management.DynamicMBean