|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wsm.policymanager.PolicyManagerFactory
public class PolicyManagerFactory
Factory class suitable for obtaining access to Policy Manager objects.
In order to obtain a Policy Manager object, a number of different configuration options must be specified depending on how the objects will be accessed. These can be provided explicitly via the create methods' arguments or will be retrieved automatically from the PAP configuration file (J2EE_HOME/config/policy-accessor-config.xml). For WLS it is checked under DOMAIN_PATH/config. If the value is not available, then a suitable default will be calculated based on the current environment (e.g. system properties). The set of properties and the order of precedence for calculating each option is as follows:
Nested Class Summary | |
---|---|
static class |
PolicyManagerFactory.PM_MODE_ENUM |
Field Summary | |
---|---|
static String |
ACTIVE_PROTOCOL |
static String |
APPLICATION_NAME |
static String |
CSFKEY_PROPERTY |
static String |
LOOKUP_HOST |
static String |
LOOKUP_PORT |
static String |
LOOKUPMODE_MANAGED |
static String |
MDS_MODULE_HOME |
static String |
OWSM_CSF_MAPPING_ALIAS |
static String |
POLICY_ACCESSOR_CONFIG_LOC |
static String |
POLICY_ACCESSOR_ELEM |
static String |
PROP_NAME_ATTR |
static String |
PROPERTIES_ELEM |
static String |
PROPERTY_ELEM |
Constructor Summary | |
---|---|
PolicyManagerFactory() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MDS_MODULE_HOME
public static final String APPLICATION_NAME
public static final String LOOKUPMODE_MANAGED
public static final String ACTIVE_PROTOCOL
public static final String POLICY_ACCESSOR_CONFIG_LOC
public static final String POLICY_ACCESSOR_ELEM
public static final String PROPERTIES_ELEM
public static final String PROPERTY_ELEM
public static final String PROP_NAME_ATTR
public static final String LOOKUP_HOST
public static final String LOOKUP_PORT
public static final String CSFKEY_PROPERTY
public static final String OWSM_CSF_MAPPING_ALIAS
Constructor Detail |
---|
public PolicyManagerFactory()
Method Detail |
---|
public static IQueryService createQueryService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props) throws PolicyManagerException
This factory hides the complexity of the either using the local mode or remote mode when using the IQueryService to query the Policy Store.
The query service objects are cached. For local mode the caching is based the location of the policy store specified by the mds.module.home property. In remote mode, the caching is based on the jndi url to look up the query service.
This factory provides enables the Policy Manager to work either as a shared library or as a J2EE Application.
mode
- access modeprops
- configuration propertiesPolicyManagerException
public static IQueryService createQueryService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props, Subject subject) throws PolicyManagerException
PolicyManagerException
public static IUpdateService createUpdateService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props) throws PolicyManagerException
PolicyManagerException
public static IUpdateService createUpdateService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props, Subject subject) throws PolicyManagerException
This factory hides the complexity of the either using the local mode or remote mode when using the IUpdateService to update the Policy Store.
The update service objects are cached. For local mode the caching is based the location of the policy store specified by the mds.module.home property. In remote mode, the caching is based on the jndi url to look up the update service.
This factory provides enables the Policy Manager to work either as a shared library or as a J2EE Application.
mode
- access modeprops
- configuration propertiesPolicyManagerException
public static IPolicyAccessService createPolicyAccessService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props) throws PolicyManagerException
PolicyManagerException
public static IPolicyAccessService createPolicyAccessService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props, Subject subject) throws PolicyManagerException
This factory hides the complexity of the either using the local mode or remote mode when using the IPolicyAccessService to update the Policy Store.
The policy access service objects are cached. For local mode the caching is based the location of the policy store specified by the mds.module.home property. In remote mode, the caching is based on the jndi url to look up the policy access service.
This factory provides enables the Policy Manager to work either as a shared library or as a J2EE Application.
mode
- access modeprops
- configuration propertiesPolicyManagerException
public static IPolicyService createPolicyService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props) throws PolicyManagerException
PolicyManagerException
public static IPolicyService createPolicyService(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> props, Subject subject) throws PolicyManagerException
mode
-props
-PolicyManagerException
public static void populateProtocol(PolicyManagerFactory.PM_MODE_ENUM mode, Map<String,String> pmConfig) throws PolicyManagerException
PolicyManagerException
public static Map<String,String> joinPolicyAccessorConfig(Map<String,String> inProps)
inProps
- initial property mappublic static Map<String,String> getPAPConfig()
public static Map<String,String> addCredsUsingCSF(Map<String,String> config) throws PolicyManagerException
PolicyManagerException
public static IAppServerConfig getAppServerConfig(Map<String,String> pmConfig)
pmConfig
-
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |