Provides a set of methods for creating, editing, and removing policies. An Authorization-provider MBean can optionally extend this MBean. The WebLogic Server Administration Console detects when an Authorization provider extends this MBean and automatically provides a GUI for using these methods.
If you use the getMBeanInfo
operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.management.security.authorization.PolicyEditorMBean
No factory methods. Instances of this MBean are created automatically.
The following MBeans extend or implement this MBean type:
|
This section describes the following operations:
Creates a policy for accessing a resource.
Operation Name | "createPolicy" |
Parameters | Object [] {
resourceId, expression }
where:
|
Signature | String [] {
"java.lang.String",
"java.lang.String" } |
Returns |
void
|
weblogic.management.utils.AlreadyExistsException
weblogic.management.utils.CreateException
Returns the expression of an existing policy.
Operation Name | "getPolicyExpression" |
Parameters | Object [] {
resourceId }
where:
|
Signature | String [] {
"java.lang.String" } |
Returns | String
|
weblogic.management.utils.NotFoundException
Indicates whether a policy exists for a resource.
Operation Name | "policyExists" |
Parameters | Object [] {
resourceId }
where:
|
Signature | String [] {
"java.lang.String" } |
Returns |
boolean
|
Removes a policy.
Operation Name | "removePolicy" |
Parameters | Object [] {
resourceId }
where:
|
Signature | String [] {
"java.lang.String" } |
Returns |
void
|
weblogic.management.utils.NotFoundException
weblogic.management.utils.RemoveException
Sets a policy expression for a resource.
Operation Name | "setPolicyExpression" |
Parameters | Object [] {
resourceId, expression }
where:
|
Signature | String [] {
"java.lang.String",
"java.lang.String" } |
Returns |
void
|
weblogic.management.utils.NotFoundException
weblogic.management.utils.CreateException
Operation Name | "wls_getDisplayName" |
Parameters | null |
Signature | null |
Returns | String
|