Use the New JACC Provider page to create a new JSR-115/196compliant Java Authorization Contract for Containers (JACC) provider that can be used by third-party authorization modules for applications running in GlassFish Server. The JACC provider is created as a jacc-provider
element within the security-service
element in the domain's domain.xml
file.
The default GlassFish Server installation includes two JACC providers, named default
and simple
. Any new JACC providers you create are in addition to these two default providers. The default GlassFish Server JACC providers implement a simple, file-based authorization engine that complies with the JACC specification.
For information on how to write the implementation classes for a JACC provider, see the JACC specification at http://jcp.org/en/jsr/detail?id=115
.
Under the Configurations node In the navigation tree, expand the expand the GlassFish Server instance or cluster for which you want to create a JACC provider.
To create a provider that will be available to all instances and clusters, choose the default-config
node.
Under the expanded instance or cluster configuration node, expand the Security node.
Under the Security node, select the JACC Providers node.
The JACC Providers page opens.
On the JACC Providers page, click New.
The New JACC Provider page opens.
On the New JACC Provider page, in the Name field, type the name that will identify this provider.
This name is used to reference the jacc-provider
element in domain.xml
.
In the Policy Configuration field, type the name of the class that implements the policy configuration factory.
The default
provider uses org.glassfish.exousia.modules.locked.SimplePolicyConfigurationFactory
. The simple
provider uses org.glassfish.exousia.modules.locked.SimplePolicyConfigurationFactory
.
In the Policy Provider field, type the name of the class that implements the policy factory.
The default
provider uses org.glassfish.exousia.modules.locked.SimplePolicyProvider
. The simple
provider uses org.glassfish.exousia.modules.locked.SimplePolicyProvider
.
In the Additional Properties section, specify additional properties.
To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.
For a description of the additional properties available for JACC providers, see Properties Specific to JACC Providers.
Click OK.