|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 1 (11.1.1) E22649-02 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyStore
PolicyStore is the top-level scope concept. In a PolicyStore, users can create one or more Applications.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.security.jps.service.JpsPersistable |
---|
JpsPersistable.Mode |
Method Summary | |
---|---|
ApplicationPolicy |
createApplicationPolicy(java.lang.String appId) Creates an application policy given the application name - appid . |
ApplicationPolicy |
createApplicationPolicy(java.lang.String appId, java.lang.String displayName, java.lang.String description) Creates an application policy given the application name - appid , display name displayName and description description |
void |
deleteApplicationPolicy(java.lang.String appId) Delete an application policy given the application name - appid . |
AdminManager |
getAdminManager() Gets an instance of Administrator Manager |
java.util.List<ApplicationPolicy> |
getApplicationPolicies(ApplicationPolicySearchQuery query) Get Application Policies by the given query |
ApplicationPolicy |
getApplicationPolicy(java.lang.String appId) Returns a application policy for the given application by this PolicyStore |
java.util.List<AppRoleEntry> |
getAppRoles(StoreAppRoleSearchQuery query) Search ApplicationRoles across one or more Applications based upon user specified criteria (query) Caller should have PolicyStoreAccessPermission ("context=APPLICATION,name=Queried Applicaiton's stripe Id" , "getApplicationPolicy") permission to search for roles.If the caller does not supply an application name (or supplies a partial application name with some MATCHER other than EXACT) then they should have PolicyStoreAccessPermission ("context=APPLICATION, name=*" , "getApplicationPolicy") to search for app roles. |
ConfigurationBindingManager |
getConfigurationBindingManager() Gets an instance of OES Configuration Binding Manager |
ConfigurationManager |
getConfigurationManager() Gets an instance of OES Configuration Manager |
PolicyStoreType |
getPolicyStoreType() Returns the underlying Policy Storage mechanism (XML, LDAP, etc). |
void |
modifyApplicationPolicy(ApplicationPolicy app) Modify an application policy in the persistence store. |
Methods inherited from interface oracle.security.jps.service.ServiceInstance |
---|
accept, getName, getServiceProvider |
Methods inherited from interface oracle.security.jps.service.JpsPersistable |
---|
persist, refresh |
Methods inherited from interface oracle.security.jps.jaas.JavaPolicy |
---|
getPermissions, getPermissions, getPermissions, getPermissions, getPermissions, hasPermission, implies, refresh |
Methods inherited from interface oracle.security.jps.service.policystore.PolicyMgmt |
---|
getGrantEntries, grant, grant, modifyGrant, revoke, revoke |
Method Detail |
---|
java.util.List<ApplicationPolicy> getApplicationPolicies(ApplicationPolicySearchQuery query) throws PolicyStoreException
Caller should have admin privileges to view the application policy.
query
- the query criteria.PolicyStoreException
ApplicationPolicy getApplicationPolicy(java.lang.String appId) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
Caller should have view privileges to the application.
appId
- name of the applicationPolicyStore
PolicyStoreException
- if there is an error during this policy operationInvalidArgumentException
- if application name is null or empty.PolicyObjectNotFoundException
- if application policy for the given application does not exist.ApplicationPolicy createApplicationPolicy(java.lang.String appId) throws InvalidArgumentException, PolicyObjectAlreadyExistsException, PolicyStoreException
appid
.appId
-PolicyObjectAlreadyExistsException
- if this application policy already existsPolicyStoreException
- if there is an error during creation of the policyInvalidArgumentException
- if application name is null or empty.java.security.AccessControlException
- if the caller does not have the PolicyStoreAccessPermission
("context=APPLICATION,name=Applicaiton's stripe Id" , "createApplicationPolicy").ApplicationPolicy createApplicationPolicy(java.lang.String appId, java.lang.String displayName, java.lang.String description) throws InvalidArgumentException, PolicyObjectAlreadyExistsException, PolicyStoreException
appid
, display name displayName
and description description
appId
-PolicyObjectAlreadyExistsException
- if this application policy already existsPolicyStoreException
- if there is an error during creation of the policyInvalidArgumentException
- if application name is null or empty.java.security.AccessControlException
- if the caller does not have the PolicyStoreAccessPermission
("context=APPLICATION,name=Applicaiton's stripe Id" , "createApplicationPolicy").void deleteApplicationPolicy(java.lang.String appId) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
appid
.appId
-PolicyObjectNotFoundException
- if this application policy does not existPolicyStoreException
- if there is an error during deletion of the policyInvalidArgumentException
- if application name is null or empty.java.security.AccessControlException
- if the caller does not have the PolicyStoreAccessPermission
("context=APPLICATION,name=Applicaiton's stripe Id" , "deleteApplicationPolicy").PolicyStoreType getPolicyStoreType()
AdminManager getAdminManager() throws PolicyStoreException
PolicyStoreException
java.util.List<AppRoleEntry> getAppRoles(StoreAppRoleSearchQuery query) throws PolicyStoreException
PolicyStoreAccessPermission
("context=APPLICATION,name=Queried Applicaiton's stripe Id" , "getApplicationPolicy") permission to search for roles.PolicyStoreAccessPermission
("context=APPLICATION, name=*" , "getApplicationPolicy") to search for app roles. Otherwise the method will throw a SecurityException
or AccessControlException
.query
- Cross application AppRole search criteria.PolicyStoreException
- if an error occurs while querying.java.security.AccessControlException
- if the caller does not have sufficient privileges for querying applications.void modifyApplicationPolicy(ApplicationPolicy app) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
app
- ApplicationPolicy object.InvalidArgumentException
- an invalid parameter was suppliedPolicyObjectNotFoundException
- application policy not found in the peristence store.PolicyStoreException
- if an error occurs while persisting the changes.java.security.AccessControlException
- if the caller does not have the PolicyStoreAccessPermission
("context=APPLICATION,name=Applicaiton's stripe Id" , "createApplicationPolicy").ConfigurationManager getConfigurationManager()
ConfigurationBindingManager getConfigurationBindingManager()
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 1 (11.1.1) E22649-02 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |