javax.security.auth.message.config
static class: AuthConfigFactory.LoadAction [javadoc |
source]
java.lang.Object
javax.security.auth.message.config.AuthConfigFactory$LoadAction
All Implemented Interfaces:
PrivilegedExceptionAction
A PrivilegedExceptionAction that looks up the class name identified
by the authcontextfactory.provider system property and loads the class
using the thread context class loader.
Method from javax.security.auth.message.config.AuthConfigFactory$LoadAction Summary: |
---|
getName, run |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.security.auth.message.config.AuthConfigFactory$LoadAction Detail: |
public String getName() {
return name;
}
|
public Object run() throws Exception {
name = System.getProperty(FACTORY_PROP);
if( name == null )
{
// Use the default factory impl
name = DEFAULT_FACTORY_SECURITY_PROPERTY;
}
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Class factoryClass = loader.loadClass(name);
return factoryClass;
}
|