Skip navigation links

Oracle Fusion Middleware MBeans Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14651-05


oracle.security.jps.mas.mgmt.jmx.policy
Interface JpsApplicationPolicyStoreMXBean


@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.description",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@ImmutableInfo(value="true")
@Since(value="11.1.1.0.0")
@Visibility(value=Advanced)
@SystemMBean
public interface JpsApplicationPolicyStoreMXBean

This interface exposes methods that can be used via MBeans to perform operations on the Policy Store.


Field Summary
static java.lang.String RBN
          Data member to hold the ResourceBundle that will be used.

 

Method Summary
 void addMembersToApplicationRole(java.lang.String strAppId, PortableApplicationRole appRole, PortableRoleMember[] arrMembers)
          Function to Add Members to a specfic Application Role.
 void addResourceToEntitlement(java.lang.String appStripe, java.lang.String name, java.lang.String resourceName, java.lang.String resourceType, java.lang.String actions)
          Adds a member resource to a Permission Set in a given application stripe
 void createApplicationPolicy(java.lang.String appId)
          Creates an application policy given the application name - appid.
 PortableApplicationRole createApplicationRole(java.lang.String strAppId, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String guid)
          Function to create an application role.
 void createAttribute(java.lang.String appStripe, java.lang.String name, java.lang.String displayname, java.lang.String description, java.lang.String type, java.lang.String category, boolean isSingle, java.lang.String[] values)
          Create an attribute
 void createEntitlement(java.lang.String appStripe, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String resourceName, java.lang.String resourceType, java.lang.String actions)
          Create a Permission Set in a given application stripe
 void createFunction(java.lang.String appId, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String className, java.lang.String returnType, java.lang.String[] paramTypes)
          Function to create a new custom function in the given application
 void createPolicy(java.lang.String appStripe, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String ruleExpression, java.lang.String[] entitlements, java.lang.String resActionList, PortablePrincipal[] principals, java.lang.String codeSource, java.lang.String obligationList, java.lang.String semantic)
          Create an advanced policy entry in the given application
 void createResource(java.lang.String appStripe, java.lang.String name, java.lang.String type, java.lang.String displayName, java.lang.String description)
          Create a Resource in a given application stripe
 void createResourceType(java.lang.String appStripe, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String provider, java.lang.String matcher, java.lang.String[] allowedActions, java.lang.String delimiter)
          Create a ResourceType in a given application stripe
 void deleteApplicationPolicy(java.lang.String appId)
          Delete an application policy given the application name - appid.
 void deleteAttribute(java.lang.String appStripe, java.lang.String name)
          Delete an attribute
 void deleteEntitlement(java.lang.String appStripe, java.lang.String permSetName)
          Delete a PermissionSet from a given application stripe
 void deleteFunction(java.lang.String appId, java.lang.String name)
          Function to delete the given custom function
 void deletePolicy(java.lang.String appStripe, java.lang.String name)
          Delete a policy that is present in the mentioned application
 void deleteResource(java.lang.String appStripe, java.lang.String resourceName, java.lang.String resourceTypeName)
          Delete a Resource from a given application stripe
 void deleteResourceType(java.lang.String appStripe, java.lang.String resourceTypeName)
          Delete a ResourceType from a given application stripe
 PortableApplicationRole[] getAllApplicationRoles(java.lang.String strAppId)
          Function to retrieve the different Application Roles associated with an application.
 PortableJavaPolicy getApplicationPolicy(java.lang.String appId)
          Return the Policy for the application.
 PortableApplicationRole getApplicationRole(java.lang.String strAppId, java.lang.String name)
          Function to retrieve an already created application role.
 PortablePermission[] getCodeSourcePermissions(java.lang.String appId, PortableCodeSource codeSource)
          Returns the permissions granted to the passed in code source.
 java.lang.String[] getConfiguredApplications()
          Function to retrieve the Names of Applications whose policies that are present in the policy store.
 PortablePermissionSet getEntitlement(java.lang.String appStripe, java.lang.String permSetName)
          Get a Permission Set from a given application stripe
 PortableFunction getFunction(java.lang.String appId, java.lang.String name)
          Function to obtain the function with given name
 PortableApplicationRole[] getGrantedApplicationRoles(java.lang.String strAppId, PortableRoleMember roleMember)
          Function to return the Application Roles which have been granted to the principal.
 PortableRoleMember[] getMembersForApplicationRole(java.lang.String strAppId, PortableApplicationRole appRole)
          Function to retrieve the different Members for a specific application role.
 PortablePermission[] getPermissions(java.lang.String appId, PortablePrincipal principal)
          Returns the permissions granted to the passed in principal.
 PortablePolicy[] getPolicies(java.lang.String appStripe, java.lang.String entitlement)
          Function to retrieve policies having an entitlement in an application.
 PortableResource getResource(java.lang.String appStripe, java.lang.String resourceName, java.lang.String resourceTypeName)
          Get a Resource from a given application stripe
 PortableResourceType getResourceType(java.lang.String appStripe, java.lang.String resourceTypeName)
          Get a ResourceType from a given application stripe
 void grantEntitlement(java.lang.String appStripe, java.lang.String entitlementName, PortablePrincipal principal)
          Grants the permission set to a principal
 void grantToApplicationPolicy(java.lang.String strAppId, PortableGrant[] arrPortableGrants)
          Function to add grants to a specific Application Policy.
 java.lang.Boolean[] hasPermission(java.lang.String appId, PortablePermission[] arrPerms)
          Function to check which Permission(s) the user has for an application
 java.lang.Boolean[] hasPermission(java.lang.String appId, javax.security.auth.Subject user, PortablePermission[] arrPerms)
          Function to check which Permission(s) the user has for an application
 java.lang.String[] listAppStripes(java.lang.String regex)
          Lists all app stripes from the configured policy store
 PortableAttribute[] listAttributes(java.lang.String appStripe, boolean hideBuiltIn)
          List all attributes in the given application
 PortablePermissionSet[] listEntitlements(java.lang.String appStripe, java.lang.String resourceTypeName, java.lang.String resourceName)
          Lists all permission sets from a given application stripe
 PortableFunction[] listFunctions(java.lang.String appId, boolean hideBuiltIn)
          Function to list all functions in the given application
 PortablePolicy[] listPolicies(java.lang.String appStripe)
          List all policy entries in this application.
 PortableResourceActions[] listResourceActions(java.lang.String appStripe, java.lang.String permSetName)
          Lists all resource actions from a given application stripe for a given permission set
 PortableResource[] listResources(java.lang.String appStripe, java.lang.String resourceTypeName)
          Lists all resources from a given application stripe
 PortableResourceType[] listResourceTypes(java.lang.String appStripe)
          Lists all resource types from a given application stripe
 void removeApplicationRole(java.lang.String strAppId, java.lang.String name)
          Function to delete an application role.
 void removeMembersFromApplicationRole(java.lang.String strAppId, PortableApplicationRole appRole, PortableRoleMember[] arrMembers)
          Function to remove Members from a specfic Application Role.
 void revokeEntitlement(java.lang.String appStripe, java.lang.String entitlementName, PortablePrincipal principal)
          Revokes the permission set from a principal
 void revokeFromApplicationPolicy(java.lang.String strAppId, PortableGrant[] arrPortableGrants)
          Function to revoke grants from a specific Application Policy.
 void revokeResourceFromEntitlement(java.lang.String appStripe, java.lang.String name, java.lang.String resourceName, java.lang.String resourceType, java.lang.String actions)
          Revokes a member resource to a Permission Set in a given application stripe
 void updateApplicationRole(java.lang.String strAppId, java.lang.String appRoleName, java.lang.String newDescription, java.lang.String newDisplayName)
          Function to update description and display name for an existing application role.
 void updateAttribute(java.lang.String appStripe, java.lang.String name, java.lang.String displayname, java.lang.String description, java.lang.String[] values)
          Update values of an attribute
 void updateFunction(java.lang.String appId, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String className, java.lang.String returnType, java.lang.String[] paramTypes)
          Function to update a custom function with given values
 void updatePolicy(java.lang.String appStripe, java.lang.String policy, java.lang.String displayName, java.lang.String description, java.lang.String ruleExpression, java.lang.String[] entitlements, java.lang.String resActionsList, PortablePrincipal[] principals, java.lang.String codeSource, java.lang.String obligationsList)
          Update elements of an existing policy
 void updateResource(java.lang.String appStripe, java.lang.String name, java.lang.String type, java.lang.String displayName, java.lang.String description, PortableAttribute[] attributes)
          Update the resource in the given application stripe.
 void updateResourceType(java.lang.String appStripe, java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String[] allowedActions, java.lang.String delimiter, java.lang.String[] attributes, java.lang.String provider, java.lang.String matcher, java.lang.Boolean hierarchicalResource, java.lang.Character resourceNameDelimiter)
          Update a ResourceType in a given application stripe, with new properties

 

Field Detail

RBN

static final java.lang.String RBN
Data member to hold the ResourceBundle that will be used.
See Also:
Constant Field Values

Method Detail

getConfiguredApplications

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getConfiguredApplications",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
java.lang.String[] getConfiguredApplications()
                                             throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                    java.io.IOException
Function to retrieve the Names of Applications whose policies that are present in the policy store.
Returns:
String[] which contains the ids of the applications configured within the store
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

getApplicationPolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getApplicationPolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableJavaPolicy getApplicationPolicy(java.lang.String appId)
                                        throws oracle.as.jmx.framework.exceptions.ManagementException,
                                               java.io.IOException
Return the Policy for the application.
Parameters:
appId - Application Id who's policy is to be retrieved
Returns:
PortableJavaPolicy which contains the policy related to the application
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

grantToApplicationPolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.grantToApplicationPolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void grantToApplicationPolicy(java.lang.String strAppId,
                                                 PortableGrant[] arrPortableGrants)
                              throws oracle.as.jmx.framework.exceptions.ManagementException,
                                     java.io.IOException
Function to add grants to a specific Application Policy.
Parameters:
strAppId - Application Id where the grant has to be performed
arrPortableGrants - The array of PortableGrant which contains information about the Grants
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

revokeFromApplicationPolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.revokeFromApplicationPolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void revokeFromApplicationPolicy(java.lang.String strAppId,
                                                    PortableGrant[] arrPortableGrants)
                                 throws oracle.as.jmx.framework.exceptions.ManagementException,
                                        java.io.IOException
Function to revoke grants from a specific Application Policy.
Parameters:
strAppId - Application Id where the revoke has to be performed
arrPortableGrants - The array of PortableGrant which contains information about the Grants
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

createApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createAppRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
PortableApplicationRole createApplicationRole(java.lang.String strAppId,
                                                                 java.lang.String name,
                                                                 java.lang.String displayName,
                                                                 java.lang.String description,
                                                                 java.lang.String guid)
                                              throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                     java.io.IOException
Function to create an application role.
Parameters:
strAppId - Application Id where the role is to be created
name - Name to be used for the Application Role
displayName - Display Name for the Application Role
description - Description for the Aplication Role
guid - String representing the Guid
Returns:
PortableApplicationRole created Application Role
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

updateApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createAppRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void updateApplicationRole(java.lang.String strAppId,
                                              java.lang.String appRoleName,
                                              java.lang.String newDescription,
                                              java.lang.String newDisplayName)
                           throws oracle.as.jmx.framework.exceptions.ManagementException
Function to update description and display name for an existing application role.
Parameters:
strAppId - Application Id where the role is created
appRoleName - Name of the Application Role
newDisplayName - The new Display Name for the Application Role
newDescription - The new Description for the Application Role
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encanpsulate the reason for the failure

updateFunction

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.updateFunction",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void updateFunction(java.lang.String appId,
                                       java.lang.String name,
                                       java.lang.String displayName,
                                       java.lang.String description,
                                       java.lang.String className,
                                       java.lang.String returnType,
                                       java.lang.String[] paramTypes)
                    throws javax.management.MBeanException
Function to update a custom function with given values
Parameters:
appId - Application Id of application who's function has to be updated
name - Name of function to be created
displayName - Display name for the function
description - Short description of the function
className - Name of class to which the function belongs
returnType - Return type of the function
paramTypes - Array of String having entries as types of parameters
Throws:
javax.management.MBeanException - Exception that will encanpsulate the reason for the failure

createFunction

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createFunction",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createFunction(java.lang.String appId,
                                       java.lang.String name,
                                       java.lang.String displayName,
                                       java.lang.String description,
                                       java.lang.String className,
                                       java.lang.String returnType,
                                       java.lang.String[] paramTypes)
                    throws javax.management.MBeanException
Function to create a new custom function in the given application
Parameters:
appId - Application Id of the application for which the function has to be created
name - Name of function to be created
displayName - Display name for the function
description - Short description of the function
className - Name of class to which the function belongs
returnType - Return type of the function
paramTypes - Array of String having entries as types of parameters
Throws:
javax.management.MBeanException - Exception that will encanpsulate the reason for the failure

deleteFunction

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deleteFunction",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deleteFunction(java.lang.String appId,
                                       java.lang.String name)
                    throws javax.management.MBeanException
Function to delete the given custom function
Parameters:
appId - Application Id who's function has to be deleted
name - Name of function to be deleted
Throws:
javax.management.MBeanException - Exception that will encanpsulate the reason for the failure

getApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getAppRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableApplicationRole getApplicationRole(java.lang.String strAppId,
                                                              java.lang.String name)
                                           throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                  java.io.IOException
Function to retrieve an already created application role.
Parameters:
strAppId - Application Id where the role has been created
name - Name of the Application Role
Returns:
PortableApplicationRole which represents the Application Role
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

removeApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.removeAppRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void removeApplicationRole(java.lang.String strAppId,
                                              java.lang.String name)
                           throws oracle.as.jmx.framework.exceptions.ManagementException,
                                  java.io.IOException
Function to delete an application role.
Parameters:
strAppId - Application Id where the role has to be deleted
name - The Name of the Application Role that has to be removed
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

getAllApplicationRoles

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getApplicationRoles",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableApplicationRole[] getAllApplicationRoles(java.lang.String strAppId)
                                                 throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                        java.io.IOException
Function to retrieve the different Application Roles associated with an application.
Parameters:
strAppId - Application Id
Returns:
Array of Application Roles
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

getMembersForApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getMembersForApplicationRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableRoleMember[] getMembersForApplicationRole(java.lang.String strAppId,
                                                                     PortableApplicationRole appRole)
                                                  throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                         java.io.IOException
Function to retrieve the different Members for a specific application role.
Parameters:
strAppId - Application Id
appRole - Application Role for which we want to get the members
Returns:
Array of Role Members
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

addMembersToApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.addMembersToApplicationRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void addMembersToApplicationRole(java.lang.String strAppId,
                                                    PortableApplicationRole appRole,
                                                    PortableRoleMember[] arrMembers)
                                 throws oracle.as.jmx.framework.exceptions.ManagementException,
                                        java.io.IOException
Function to Add Members to a specfic Application Role.
Parameters:
strAppId - Application id
appRole - Application Role for which we want to add members
arrMembers - The array which contains the memebers that should be added to the role
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

removeMembersFromApplicationRole

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.removeMembersFromApplicationRole",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void removeMembersFromApplicationRole(java.lang.String strAppId,
                                                         PortableApplicationRole appRole,
                                                         PortableRoleMember[] arrMembers)
                                      throws oracle.as.jmx.framework.exceptions.ManagementException,
                                             java.io.IOException
Function to remove Members from a specfic Application Role.
Parameters:
strAppId - Application id
appRole - Application Role for which we want to remove members
arrMembers - The array which contains the memebers that should be removed from the role
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

getGrantedApplicationRoles

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getGrantedApplicationRoles",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableApplicationRole[] getGrantedApplicationRoles(java.lang.String strAppId,
                                                                        PortableRoleMember roleMember)
                                                     throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                            java.io.IOException
Function to return the Application Roles which have been granted to the principal.
Parameters:
strAppId - Application Id
roleMember - Member for which we are tryin to get the Application Role
Returns:
Array of Application Roles
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

hasPermission

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.hasPermission",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
java.lang.Boolean[] hasPermission(java.lang.String appId,
                                                     javax.security.auth.Subject user,
                                                     PortablePermission[] arrPerms)
                                  throws oracle.as.jmx.framework.exceptions.ManagementException,
                                         java.io.IOException
Function to check which Permission(s) the user has for an application
Parameters:
appId - The Application Id
user - The User for which we have to do the check
arrPerms - Array of Permissions
Returns:
Array of Booleans
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

hasPermission

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.hasPermission",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
java.lang.Boolean[] hasPermission(java.lang.String appId,
                                                     PortablePermission[] arrPerms)
                                  throws oracle.as.jmx.framework.exceptions.ManagementException,
                                         java.io.IOException
Function to check which Permission(s) the user has for an application
Parameters:
appId - The Application Id
arrPerms - Array of Permissions
Returns:
Array of Booleans
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

getPermissions

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getPermissions",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortablePermission[] getPermissions(java.lang.String appId,
                                                       PortablePrincipal principal)
                                    throws oracle.as.jmx.framework.exceptions.ManagementException,
                                           java.io.IOException
Returns the permissions granted to the passed in principal.
Parameters:
appId - The Application Id
principal - Principal
Returns:
Permissions granted.
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

getCodeSourcePermissions

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getCodeSourcePermissions",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortablePermission[] getCodeSourcePermissions(java.lang.String appId,
                                                                 PortableCodeSource codeSource)
                                              throws oracle.as.jmx.framework.exceptions.ManagementException,
                                                     java.io.IOException
Returns the permissions granted to the passed in code source.
Parameters:
appId - The Application Id
codeSource - CodeSource
Returns:
Permissions granted.
Throws:
oracle.as.jmx.framework.exceptions.ManagementException - Exception that will encapulate the reason for the failure
java.io.IOException - Exception if it was not possible to communicate with the server object

createApplicationPolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createApplicationPolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createApplicationPolicy(java.lang.String appId)
                             throws oracle.as.jmx.framework.exceptions.ManagementException,
                                    java.io.IOException
Creates an application policy given the application name - appid.

If neccessary, create an application policy and return to caller. Based on the algorithm in JpsAuth this checks for PolicyStoreAccessPermission("context=APPLICATION,name=Applicaiton's stripe Id" , "createApplicationPolicy"). This may result in an AccessControlException or SecurityException

Parameters:
appId -
Throws:
oracle.as.jmx.framework.exceptions.ManagementException
java.io.IOException

deleteApplicationPolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deleteApplicationPolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deleteApplicationPolicy(java.lang.String appId)
                             throws oracle.as.jmx.framework.exceptions.ManagementException,
                                    java.io.IOException
Delete an application policy given the application name - appid.

Based on the algorithm in JpsAuth this checks for PolicyStoreAccessPermission("context=APPLICATION,name=Applicaiton's stripe Id" , "deleteApplicationPolicy"). This may result in an AccessControlException or SecurityException

Parameters:
appId -
Throws:
oracle.as.jmx.framework.exceptions.ManagementException
java.io.IOException

createPolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createPolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createPolicy(java.lang.String appStripe,
                                     java.lang.String name,
                                     java.lang.String displayName,
                                     java.lang.String description,
                                     java.lang.String ruleExpression,
                                     java.lang.String[] entitlements,
                                     java.lang.String resActionList,
                                     PortablePrincipal[] principals,
                                     java.lang.String codeSource,
                                     java.lang.String obligationList,
                                     java.lang.String semantic)
                  throws javax.management.MBeanException
Create an advanced policy entry in the given application

Rules for writing rule expressions:

  1. Rules begin with a name followed by a ':' and a rule expression. Expressions are made of functions and attributes.
  2. All functions, including built-in ones are specified as a valid function name followed by a list of parameters enclosed within parentheses '()'.
  3. Attributes and function names must be valid java identifiers.
  4. Literal parameters are specified as follows:
    1. Integer literals begin with a digit between 1-9 followed by digits between 0-9. They can optionally be prefixed by a '-' for negative integers.
    2. String literals are enclosed within double quotes ""
    3. Date and Time literals are specified as GMT strings followed by the letter 'd' and 't' (case-insensitive) respectively.
  5. Standard DataTypes supported are "string", "int", "boolean", "date", "time.
  6. Supported Operators:
    1. '&&' and '||': used to combine two boolean expressions.
    2. '!': used on a boolean expression.
    3. '==': used to check equality between two strings, integers, dates and times.
    4. '>', '<', '>=', '<=': used to compare two integers, dates and times.
  7. All operators and funtions besides '&&', '||' and '!' take only values and attributes as parameters. The others can additionally take boolean expressions as parameters.

Rules for specifying principals:

  1. Principals are specified as a name followed by a ':' and a fully-qualified class-name.
e.g. 'admin:com.example.myPrincipal, manager:com.example.myPrincipal'

Rules for specifying resource actions:

  1. Resource actions are specified as an existing resource type followed by ':', followed by an existing resource name, followed by a comma-separated list of valid actions for the resource within parentheses '()'.
e.g. 'resType1:res1(act1, act2),resType2:res2(act1),resType2:res3(act2)'

Rules for writing obligations:

  1. Obligations are specified as an obligation name followed by a comma-separated list of obligation attribute assignments within parentheses '()'.
  2. If the assignment is a literal, it must be prefixed by a name followed by ':'. When assignment is an attribute, the name is optional.
e.g. 'ob1(attr1,str1:"a String"),ob2(a2:attr2)'
Parameters:
appStripe - The application name
name - name of policy to be created
displayName - display name of the policy
description - description of the policy
ruleExpression - rule expression to be evaluated for policy decision
entitlements - entitlements to be added to the policy
resActionList - Comma-separated list of resource action entries
principals - principals on whom the policy works
codeSource - code source for the policy
obligationList - Comma-separated list of obligations on the policy
semantic - "and" / "or" semantic of policy.
Throws:
oracle.as.jmx.framework.exceptions.ManagementException
java.io.IOException
javax.management.MBeanException

getPolicies

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getPolicies",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortablePolicy[] getPolicies(java.lang.String appStripe,
                                                java.lang.String entitlement)
                             throws javax.management.MBeanException
Function to retrieve policies having an entitlement in an application.
Parameters:
appStripe - The application name
entitlement - Name of the entitlement
Throws:
javax.management.MBeanException - Exception that will encapulate the reason for the failure

updatePolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.updatePolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void updatePolicy(java.lang.String appStripe,
                                     java.lang.String policy,
                                     java.lang.String displayName,
                                     java.lang.String description,
                                     java.lang.String ruleExpression,
                                     java.lang.String[] entitlements,
                                     java.lang.String resActionsList,
                                     PortablePrincipal[] principals,
                                     java.lang.String codeSource,
                                     java.lang.String obligationsList)
                  throws javax.management.MBeanException
Update elements of an existing policy
Parameters:
appStripe - The application name
policy - The policy to be updated
displayName - New display name for the policy
description - New description for the policy
ruleExpression - rule expression for the new rule for the policy. See createPolicy()
entitlements - List of entitlements. To remove an entitlement, prefix name by '-'.
resActionsList - Comma-separated list of resource actions. To specify resource actions, use rules from createPolicy(). To remove a resource action, prefix with '-'
principals - List of principals. To remove a principal make the class-name null. To be present only if codeSource is null.
codeSource - New code source. To be present only if principals is null.
obligationsList - Comma-separated list of obligations. To remove obligations, mention only name prefixed by '-'. To add obligations, use rules from createPolicy()
Throws:
javax.management.MBeanException

deletePolicy

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deletePolicy",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deletePolicy(java.lang.String appStripe,
                                     java.lang.String name)
                  throws javax.management.MBeanException
Delete a policy that is present in the mentioned application
Parameters:
appStripe - The application stripe from which this policy has to be deleted
name - Name of the policy to be deleted.
Throws:
javax.management.MBeanException

listPolicies

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listPolicies",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortablePolicy[] listPolicies(java.lang.String appStripe)
                              throws javax.management.MBeanException
List all policy entries in this application.
Parameters:
appStripe - The application Stripe from which policies have to be listed
Returns:
Throws:
javax.management.MBeanException

createAttribute

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createAttribute",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createAttribute(java.lang.String appStripe,
                                        java.lang.String name,
                                        java.lang.String displayname,
                                        java.lang.String description,
                                        java.lang.String type,
                                        java.lang.String category,
                                        boolean isSingle,
                                        java.lang.String[] values)
                     throws javax.management.MBeanException
Create an attribute
Parameters:
appStripe - The application name
name - name of attribute to be created
displayname - display name of the attribute
description - description of the attribute
type - type of attribute. on of "string", "boolean", "integer", "date", "time" or classname for custom types
category - category of attribute. One of "resource" or "dynamic"
isSingle - Whether the attribute is single valued or multi-valued
values - Values to initialize the attribute with. This argument is currently not in use.
Throws:
javax.management.MBeanException

updateAttribute

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.updateAttribute",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void updateAttribute(java.lang.String appStripe,
                                        java.lang.String name,
                                        java.lang.String displayname,
                                        java.lang.String description,
                                        java.lang.String[] values)
                     throws javax.management.MBeanException
Update values of an attribute
Parameters:
appStripe - The application name
name - name of attribute to be created
displayname - display name of the attribute
description - description of the attribute
values - values to be added to the attribute. This argument is currently not in use.
Throws:
javax.management.MBeanException

deleteAttribute

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deleteAttribute",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deleteAttribute(java.lang.String appStripe,
                                        java.lang.String name)
                     throws javax.management.MBeanException
Delete an attribute
Parameters:
appStripe - The application name
name - name of attribute to be created
Throws:
javax.management.MBeanException

listAttributes

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listAttributes",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableAttribute[] listAttributes(java.lang.String appStripe,
                                                      boolean hideBuiltIn)
                                   throws javax.management.MBeanException
List all attributes in the given application
Parameters:
appStripe - The application name
hideBuiltIn - Hide built in attributes from output, if this is "true". Default is "true"
Throws:
javax.management.MBeanException

createResourceType

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createResourceType",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createResourceType(java.lang.String appStripe,
                                           java.lang.String name,
                                           java.lang.String displayName,
                                           java.lang.String description,
                                           java.lang.String provider,
                                           java.lang.String matcher,
                                           java.lang.String[] allowedActions,
                                           java.lang.String delimiter)
                        throws javax.management.MBeanException
Create a ResourceType in a given application stripe
Parameters:
appStripe - The application stripe in which this resourcetype has to be created
name - The name of the resourcetype
displayName - The display name of this resource type
description - Description for this resourcetype
provider - Provider for this reesourcetype. Can be null
matcher - Matcher class for this resourcetype
allowedActions - Comma Separated list of actions for this resourcetype. Can be null
delimiter - delimter for the actions of this resourcetype. If null , defaults to ","
Throws:
{@link - MBeanException}
javax.management.MBeanException

getResourceType

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getResourceType",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableResourceType getResourceType(java.lang.String appStripe,
                                                        java.lang.String resourceTypeName)
                                     throws javax.management.MBeanException
Get a ResourceType from a given application stripe
Parameters:
appStripe - The application stripe in which this resourcetype has to be created
name - The name of the resourcetype
Throws:
{@link - MBeanException}
javax.management.MBeanException

getFunction

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getFunction",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableFunction getFunction(java.lang.String appId,
                                                java.lang.String name)
                             throws javax.management.MBeanException
Function to obtain the function with given name
Parameters:
appId - Application Id of application whose functions are to be listed
name - Name of the function to be obtained
Throws:
javax.management.MBeanException

updateResourceType

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.updateResourceType",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void updateResourceType(java.lang.String appStripe,
                                           java.lang.String name,
                                           java.lang.String displayName,
                                           java.lang.String description,
                                           java.lang.String[] allowedActions,
                                           java.lang.String delimiter,
                                           java.lang.String[] attributes,
                                           java.lang.String provider,
                                           java.lang.String matcher,
                                           java.lang.Boolean hierarchicalResource,
                                           java.lang.Character resourceNameDelimiter)
                        throws javax.management.MBeanException
Update a ResourceType in a given application stripe, with new properties
Parameters:
appStripe - The application stripe in which this resource type has to be updated
name - The name of the resource type
displayName - The display name of this resource type
description - Description of the resource type
allowedActions - list of actions for this resource type.
delimiter - delimiter for the actions of this resource type.If null , defaults to ","
attributes - attributes to be added to this resource type
provider - resource provider class name
matcher - resource matcher class name
hierarchicalResource - flag indicating whether the resource type has to be updated to support hierarchical resource
resourceNameDelimiter - delimiter to be used in name of hierarchical resource. Should be non-null only if hierarchicalResource is true.
Throws:
javax.management.MBeanException

deleteResourceType

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deleteResourceType",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deleteResourceType(java.lang.String appStripe,
                                           java.lang.String resourceTypeName)
                        throws javax.management.MBeanException
Delete a ResourceType from a given application stripe
Parameters:
appStripe - The application stripe in which this resourcetype has to be created
name - The name of the resourcetype
Throws:
{@link - MBeanException}
javax.management.MBeanException

createResource

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createResource",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createResource(java.lang.String appStripe,
                                       java.lang.String name,
                                       java.lang.String type,
                                       java.lang.String displayName,
                                       java.lang.String description)
                    throws javax.management.MBeanException
Create a Resource in a given application stripe
Parameters:
appStripe - The application stripe in which this resource has to be created
name - The name of the resource
displayName - The display name of this resource
description - Description for this resource
type - Type of the resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

updateResource

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.updateResource",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void updateResource(java.lang.String appStripe,
                                       java.lang.String name,
                                       java.lang.String type,
                                       java.lang.String displayName,
                                       java.lang.String description,
                                       PortableAttribute[] attributes)
                    throws javax.management.MBeanException
Update the resource in the given application stripe.
Parameters:
appStripe - The application stripe in which the resource has to be modified
name - Name of the resource to be updated.
type - Type of resource to be updated
displayName - New display name
description - New description
attributes - Array of PortableAttribute(s) corresponding to attribute(s) to be added or deleted. To delete an attribute, prefix the attribute name in corresponding PortableAttribute with '-' . The only parameters required in constructor of PortableAttribute for addition of attribute into resource using this method are "name" and "values", whereas the only parameter required in constructor of PortableAttribute for removal of attribute from resource using this method is "name".
Throws:
{@link - MBeanException}
javax.management.MBeanException

getResource

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getResource",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableResource getResource(java.lang.String appStripe,
                                                java.lang.String resourceName,
                                                java.lang.String resourceTypeName)
                             throws javax.management.MBeanException
Get a Resource from a given application stripe
Parameters:
appStripe - The application stripe in which this resource has to be created
name - The name of the resource
resourceTypeName - The type of the resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

deleteResource

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deleteResource",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deleteResource(java.lang.String appStripe,
                                       java.lang.String resourceName,
                                       java.lang.String resourceTypeName)
                    throws javax.management.MBeanException
Delete a Resource from a given application stripe
Parameters:
appStripe - The application stripe in which this resource has to be created
name - The name of the resource
resourceTypeName - The type of the resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

listResources

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listResources",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableResource[] listResources(java.lang.String appStripe,
                                                    java.lang.String resourceTypeName)
                                 throws javax.management.MBeanException
Lists all resources from a given application stripe
Parameters:
appStripe - The application stripe in which this resources need to be fetched
rersourceTypeName - The type of the resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

listResourceActions

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listResourceActions",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableResourceActions[] listResourceActions(java.lang.String appStripe,
                                                                 java.lang.String permSetName)
                                              throws javax.management.MBeanException
Lists all resource actions from a given application stripe for a given permission set
Parameters:
appStripe - The application stripe in which resource actions need to be fetched
permSetName - Name of the permission set for which the resource actions need to be fetched
Throws:
{@link - MBeanException}
javax.management.MBeanException

createEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.createEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void createEntitlement(java.lang.String appStripe,
                                          java.lang.String name,
                                          java.lang.String displayName,
                                          java.lang.String description,
                                          java.lang.String resourceName,
                                          java.lang.String resourceType,
                                          java.lang.String actions)
                       throws javax.management.MBeanException
Create a Permission Set in a given application stripe
Parameters:
appStripe - The application stripe in which this permission set has to be created
name - The name of the permission set
displayName - The display name of this permission set
description - Description for this permission set
resourceName - Name of the member resource in the permission set
actions - Actions allowed on the member resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

getEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.getEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortablePermissionSet getEntitlement(java.lang.String appStripe,
                                                        java.lang.String permSetName)
                                     throws javax.management.MBeanException
Get a Permission Set from a given application stripe
Parameters:
appStripe - The application stripe in which this permission set has to be created
name - The name of the permission set
Throws:
{@link - MBeanException}
javax.management.MBeanException

deleteEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.deleteEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void deleteEntitlement(java.lang.String appStripe,
                                          java.lang.String permSetName)
                       throws javax.management.MBeanException
Delete a PermissionSet from a given application stripe
Parameters:
appStripe - The application stripe in which this permission set has to be deleted
name - The name of the permission set
Throws:
{@link - MBeanException}
javax.management.MBeanException

addResourceToEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.addResourceToEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void addResourceToEntitlement(java.lang.String appStripe,
                                                 java.lang.String name,
                                                 java.lang.String resourceName,
                                                 java.lang.String resourceType,
                                                 java.lang.String actions)
                              throws javax.management.MBeanException
Adds a member resource to a Permission Set in a given application stripe
Parameters:
appStripe - The application stripe in which the member resource to the permission set has to be created
name - The name of the permission set
resourceName - Name of the member resource in the permission set
resourceType - Type of the member resource
actions - Actions allowed on the member resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

revokeResourceFromEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.revokeResourceFromEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=1)
void revokeResourceFromEntitlement(java.lang.String appStripe,
                                                      java.lang.String name,
                                                      java.lang.String resourceName,
                                                      java.lang.String resourceType,
                                                      java.lang.String actions)
                                   throws javax.management.MBeanException
Revokes a member resource to a Permission Set in a given application stripe
Parameters:
appStripe - The application stripe in which the member resource to the permission set has to be revoked
name - The name of the permission set
resourceName - Name of the member resource in the permission set
resourceType - Type of the member resource
actions - Actions allowed on the member resource
Throws:
{@link - MBeanException}
javax.management.MBeanException

listEntitlements

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listEntitlements",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortablePermissionSet[] listEntitlements(java.lang.String appStripe,
                                                            java.lang.String resourceTypeName,
                                                            java.lang.String resourceName)
                                         throws javax.management.MBeanException
Lists all permission sets from a given application stripe
Parameters:
appStripe - The application stripe in which this resources need to be fetched
rersourceTypeName - The type of the resource
resourceName - Name of the resource
principalName - Name of the principal
principalClass - Class of the principal
Throws:
{@link - MBeanException}
javax.management.MBeanException

grantEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.grantEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
void grantEntitlement(java.lang.String appStripe,
                                         java.lang.String entitlementName,
                                         PortablePrincipal principal)
                      throws javax.management.MBeanException
Grants the permission set to a principal
Parameters:
appStripe - The application stripe in which the permission set needs to be granted
permSetName - The name of the permission set
principalName - Name of the principal
principalClass - Class of the principal
Throws:
{@link - MBeanException}
javax.management.MBeanException

revokeEntitlement

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.revokeEntitlement",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
void revokeEntitlement(java.lang.String appStripe,
                                          java.lang.String entitlementName,
                                          PortablePrincipal principal)
                       throws javax.management.MBeanException
Revokes the permission set from a principal
Parameters:
appStripe - The application stripe in which this permission set needs to be revoked
permSetName - The name of the permission set
principalName - Name of the principal
principalClass - Class of the principal
Throws:
{@link - MBeanException}
javax.management.MBeanException

listResourceTypes

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listResourceTypes",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableResourceType[] listResourceTypes(java.lang.String appStripe)
                                         throws javax.management.MBeanException
Lists all resource types from a given application stripe
Parameters:
appStripe - The application stripe in which this resources need to be fetched
Throws:
{@link - MBeanException}
javax.management.MBeanException

listFunctions

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listFunctions",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
PortableFunction[] listFunctions(java.lang.String appId,
                                                    boolean hideBuiltIn)
                                 throws javax.management.MBeanException
Function to list all functions in the given application
Parameters:
appId - Application Id of application whose functions are to be listed
hideBuiltIn - Hide built in functions from output if this is true. Its default value is true
Throws:
javax.management.MBeanException

listAppStripes

@Description(resourceKey="oracle.security.jps.management.JpsPolicyStoreMXBean.listAppStripes",
             resourceBundleBasename="oracle_security_jps_mas_mgmt_util_JpsManagementMessages")
@Impact(value=0)
java.lang.String[] listAppStripes(java.lang.String regex)
                                  throws javax.management.MBeanException
Lists all app stripes from the configured policy store
Parameters:
regex - The app stripes matching this regular expression will be fetched
Throws:
{@link - MBeanException}
javax.management.MBeanException

Skip navigation links

Oracle Fusion Middleware MBeans Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14651-05


Copyright © 2011, Oracle. All rights reserved.