PolicyServiceUtils instead. This class will be removed shortly.
public final class PolicyStoreFactory
extends java.lang.Object
PolicyStore of a specific type.
The PolicyStore meta-data is not stored in a JPS configuration store. Rather, a PolicyStore is created on-the-fly with user supplied parameters.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREATE
Deprecated.
Property key to create a PolicyStore.
|
static java.lang.String |
LOCATION
Deprecated.
Property key to the XML PolicyStore file.
|
| Constructor and Description |
|---|
PolicyStoreFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static PolicyStore |
getPolicyStore(PolicyStoreType type, java.util.Map<java.lang.String,java.lang.String> props)
Deprecated.
Use
PolicyServiceUtils.getPolicyStore instead. |
static void |
main(java.lang.String[] args)
Deprecated.
|
public static final java.lang.String CREATE
public static final java.lang.String LOCATION
public static PolicyStore getPolicyStore(PolicyStoreType type, java.util.Map<java.lang.String,java.lang.String> props) throws JpsException
PolicyServiceUtils.getPolicyStore instead.PolicyStore given the type and a set of properties appropriate for the type of the policystore.type - - of PolicyStore to create. Supported value(s): PolicyStoreType.XMLprops - - properties with which to construct the policystore.
| Key | Valid Value(s) | Meaning |
| LOCATION | a file path | path to the XML PolicyStore (either to be created, or already exists). |
| CREATE | true,false | if true - create a new policystore. The file is created when the store is persisted. If false, read the file as an XML PolicyStore. |
PolicyStorejava.lang.UnsupportedOperationException - if a PolicyStore is not XML.JpsException - if an error occurs while instantiating the PolicyStore.
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception