public abstract class JaccProvider
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JaccProvider.Factory |
static class |
JaccProvider.Policy |
Constructor and Description |
---|
JaccProvider() |
Modifier and Type | Method and Description |
---|---|
static JaccProvider |
get() |
abstract java.security.PermissionCollection |
getPermissions(java.security.CodeSource codesource) |
abstract PolicyConfiguration |
getPolicyConfiguration() |
abstract PolicyConfiguration |
getPolicyConfiguration(java.lang.String contextID) |
abstract PolicyConfiguration |
getPolicyConfiguration(java.lang.String contextID,
boolean remove) |
abstract boolean |
hasAccessToWebResource(java.lang.String resource,
java.lang.String... methods) |
abstract boolean |
implies(java.security.ProtectionDomain domain,
java.security.Permission permission) |
abstract boolean |
inService(java.lang.String contextID) |
static void |
install()
This static method uses a system property to find and instantiate (via a
public constructor) a provider specific factory implementation class.
|
abstract void |
refresh() |
static void |
set(JaccProvider provider) |
public static JaccProvider get()
public static void set(JaccProvider provider)
public static void install() throws java.lang.ClassNotFoundException, PolicyContextException
org.apache.openejb.security.JaccProvider
.
PolicyConfigurationFactory implementation class.
java.lang.ClassNotFoundException
- when the class named by the system
property could not be found including because the value of the system
property has not be set.PolicyContextException
- if the implementation throws a checked
exception that has not been accounted for by the
getPolicyConfigurationFactory method signature. The exception thrown by
the implementation class will be encapsulated (during construction) in
the thrown PolicyContextExceptionpublic abstract PolicyConfiguration getPolicyConfiguration(java.lang.String contextID, boolean remove) throws PolicyContextException
PolicyContextException
public abstract PolicyConfiguration getPolicyConfiguration(java.lang.String contextID)
public abstract PolicyConfiguration getPolicyConfiguration()
public abstract boolean inService(java.lang.String contextID) throws PolicyContextException
PolicyContextException
public abstract java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
public abstract void refresh()
public abstract boolean implies(java.security.ProtectionDomain domain, java.security.Permission permission)
public abstract boolean hasAccessToWebResource(java.lang.String resource, java.lang.String... methods)