|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationPolicy
The class represents an application in which entity objects and policies are created.
Method Summary | |
---|---|
boolean |
changedSince(java.util.Date startTime) Check if the policy objects of this application have been changed since the specified time - startTime |
void |
createAppRole(java.lang.String appRoleName, java.lang.String displayName, java.lang.String desc, java.lang.String guid) Deprecated. replaced by AppRoleManager.createAppRole(String, String, String) |
void |
createAppRole(java.lang.String appRoleName, java.lang.String displayName, java.lang.String desc, java.lang.String guid, ExtendedProperty appRoleAttributes) Deprecated. replaced by AppRoleManager.createAppRole(String, String, String) |
AdminManager |
getAdminManager() Returns admin manager instance |
AppRoleManager |
getAppRoleManager() Returns application role manager instance |
long |
getCurrentPolicyVersion() Get current policy version |
java.lang.String |
getDescription() Get the description of this application. |
java.lang.String |
getDisplayName() Get the display name of this application. |
ExtensionManager |
getExtensionManager() Returns extension manager instance |
java.lang.String |
getName() Get the name of this application. |
PermissionSetManager |
getPermissionSetManager() Returns the PermissionSet Manager. |
PolicyDistributionManager |
getPolicyDistributionManager() Gets an instance of policy distribution manager |
PolicyDomainManager |
getPolicyDomainManager() Returns policy domain manager instance |
PolicyManager |
getPolicyManager() Returns the Policy Manager. |
ResourceManager |
getResourceManager() Returns Resource Manager |
ResourceTypeManager |
getResourceTypeManager() Returns resource type manager instance |
RoleCategoryManager |
getRoleCategoryManager() Returns the RoleCategory Manager. |
RolePolicyManager |
getRolePolicyManager() Returns the RolePolicy Manager. |
java.lang.String |
getUniqueName() Get the unique name of this application. |
java.lang.String |
getVersion() Returns the application version. |
void |
setDescription(java.lang.String description) Set the description of this application. |
void |
setDisplayName(java.lang.String displayName) Set the display name of this application. |
void |
setVersion(java.lang.String version) Set the application version in memory. |
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 |
---|
void createAppRole(java.lang.String appRoleName, java.lang.String displayName, java.lang.String desc, java.lang.String guid, ExtendedProperty appRoleAttributes) throws PolicyObjectAlreadyExistsException, PolicyStoreException
AppRoleManager.createAppRole(String, String, String)
Standard attributes supplied as parameters in this api ( DISPLAY_NAME, DESCRIPTION and GUID) cannot be part of the extended attributes.
The following code fragment illustrates how to construct the extended attributes:
ExtendedProperty ep = new ExtendedProperty(); String attribute = ApplicationRoleAttributes.SCOPE.name(); List < String > values = new ArrayList< String >(); values.add( "user-defined-value"); ep.setProperty(attribute, values);
Based on the algorithm in JpsAuth
this checks for PolicyStoreAccessPermission
("context=APPLICATION,name=Application's Stripe id", "createAppRole"). This may result in an AccessControlException or SecurityException
appRoleName
- name of the application roledisplayName
- diplay name of the application roledesc
- description of the application roleguid
- guid of the application roleappRoleAttributes
- - Extended attributes for the application rolePolicyObjectAlreadyExistsException
- if the role already exists.PolicyStoreException
- if the policy store provider reports an error while creating the role.java.lang.IllegalArgumentException
- if the standard attributes are part ofjava.lang.NullPointerException
- if the application name is empty. the extendedAttributes.for a list of valid extended attributes.
void createAppRole(java.lang.String appRoleName, java.lang.String displayName, java.lang.String desc, java.lang.String guid) throws PolicyObjectAlreadyExistsException, PolicyStoreException
AppRoleManager.createAppRole(String, String, String)
Based on the algorithm in JpsAuth
this checks for PolicyStoreAccessPermission
("context=APPLICATION,name=Application's Stripe id", "createAppRole"). This may result in an AccessControlException or SecurityException
appRoleName
- - name of the app roledisplayName
- - diplay name of the app roledesc
- - description of the app roleguid
- - guid of the app rolePolicyObjectAlreadyExistsException
- - if this application role already existsPolicyStoreException
- - if there is an error during this operationjava.lang.NullPointerException
- if the application name is empty.java.lang.String getName()
void setVersion(java.lang.String version)
Supply null to remove the version.
To persist the changes in the store, use PolicyStore.modifyApplicationPolicy(ApplicationPolicy)
To prevent multiple threads from updating the version concurrently in the store for the same application, the method PolicyStore.modifyApplicationPolicy(ApplicationPolicy)
should be called called immediately after this method.
java.lang.String getVersion()
java.lang.String getUniqueName()
java.lang.String getDisplayName()
java.lang.String getDescription()
void setDisplayName(java.lang.String displayName)
void setDescription(java.lang.String description)
long getCurrentPolicyVersion() throws PolicyStoreException
PolicyStoreException
boolean changedSince(java.util.Date startTime) throws InvalidArgumentException, PolicyStoreException
startTime
- the start timeInvalidArgumentException
PolicyStoreException
ResourceTypeManager getResourceTypeManager()
AppRoleManager getAppRoleManager()
ExtensionManager getExtensionManager()
PolicyDomainManager getPolicyDomainManager()
AdminManager getAdminManager()
ResourceManager getResourceManager()
PermissionSetManager getPermissionSetManager()
PolicyManager getPolicyManager()
RoleCategoryManager getRoleCategoryManager()
RolePolicyManager getRolePolicyManager()
PolicyDistributionManager getPolicyDistributionManager()
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |