DefaultAuthorizerMBean


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

This MBean represents configuration attributes for the WebLogic Authorization provider.

   
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.security.providers.authorization.DefaultAuthorizerMBean
Factory Methods No factory methods. Instances of this MBean are created automatically.


Related MBeans

This section describes attributes that provide access to other MBeans.


    Realm

    Returns the realm that contains this security provider. Returns null if this security provider is not contained by a realm.

           
    Privileges Read only
    TypeRealmMBean
    Relationship type: Reference.


    Attributes

    This section describes the following attributes:


    Description

    A short description of the WebLogic Authorization provider.

           
    Privileges Read only
    Typejava.lang.String
    Default ValueWebLogic Authorization Provider
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    Name

           
    Privileges Read only
    Typejava.lang.String
    Default ValueDefaultAuthorizer
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    PolicyDeploymentEnabled

    Returns whether this Authorization provider stores policies that are created while deploying a Web application or EJB.

           
    Privileges Read/Write
    Typeboolean
    Default Valuetrue

    ProviderClassName

    The name of this WebLogic Authorization provider.

           
    Privileges Read only
    Typejava.lang.String
    Default Valueweblogic.security.providers.authorization.DefaultAuthorizationProviderImpl
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    SupportedExportConstraints

    The security policies that you want exported from this Authorization provider's database. If none are specified, all are exported.

           
    Privileges Read only
    Typeclass java.lang.String[]
    Default Value
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    SupportedExportFormats

    The format of the file to export. The list of supported export formats is determined by this Authorization provider.

           
    Privileges Read only
    Typeclass java.lang.String[]
    Default Value DefaultAtz
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    SupportedImportConstraints

    The security policies that you want to be imported into this Authorization provider's database. If none are specified, all are imported.

           
    Privileges Read only
    Typeclass java.lang.String[]
    Default Value
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    SupportedImportFormats

    The format of the file to import. The list of supported import formats is determined by the Authorization provider from which the security policies were originally exported.

           
    Privileges Read only
    Typeclass java.lang.String[]
    Default Value DefaultAtz
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

    Version

    The version of the WebLogic Authorization provider.

           
    Privileges Read only
    Typejava.lang.String
    Default Value1.0
    Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.


    Operations

    This section describes the following operations:


    advance

    Advances the list to the next element in the list.

       
    Operation Name"advance"
    ParametersObject [] {  cursor }

    where:

    • cursor is an object of type java.lang.String that specifies:

      - The cursor returned from a previous list method.

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.InvalidCursorException

    close

    Indicates that the caller is finished using the list, and that the resources held on behalf of the list may be released. If the caller traverses through all the elements in the list, the caller need not call this method. In other words, it is used to let the caller close the list without reading each element that is returned.

       
    Operation Name"close"
    ParametersObject [] {  cursor }

    where:

    • cursor is an object of type java.lang.String that specifies:

      - The cursor returned from a previous list method.

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.InvalidCursorException

    createPolicy

    Creates a policy for accessing a resource.

       
    Operation Name"createPolicy"
    ParametersObject [] {  resourceIdexpression }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - The ID of the resource. A null value will trigger NullPointerException.

      For information about creating resources, refer to the Javadoc for weblogic.security.spi.Resource.

    • expression is an object of type java.lang.String that specifies:

      - The expression that determines the type of access this policy allows to the resource. A null value prohibits any type of access.

    SignatureString [] { "java.lang.String", "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.AlreadyExistsException
    • weblogic.management.utils.CreateException

    exportData

    Exports provider specific data in a specified format. When errors occur, the MBean throws an ErrorCollectionException containing a list of java.lang.Exceptions, where the text of each exception describes the error.

       
    Operation Name"exportData"
    ParametersObject [] {  formatfilenameconstraints }

    where:

    • format is an object of type java.lang.String that specifies:

      - The format for exporting provider specific data.

    • filename is an object of type java.lang.String that specifies:

      - The full path to the filename used to write data.

    • constraints is an object of type java.util.Properties that specifies:

      - The constraints to be used when exporting data. A null value indicates that all data will be exported.

    SignatureString [] { "java.lang.String", "java.lang.String", "java.util.Properties" }
    Returns void
    Exceptions
    • weblogic.management.utils.InvalidParameterException
    • weblogic.management.utils.ErrorCollectionException

    exportResource

    Exports provider specific policy data using an LDAP CN search filter to specify the resources for export. When errors occur, the MBean throws an ErrorCollectionException containing a list of <code>java.lang.Exceptions</code;>.

       
    Operation Name"exportResource"
    ParametersObject [] {  filenameexpression }

    where:

    • filename is an object of type java.lang.String that specifies:

      - The full path to the filename used to write data.

    • expression is an object of type java.lang.String that specifies:

      - The LDAP CN to be used when exporting data.

    SignatureString [] { "java.lang.String", "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.InvalidParameterException
    • weblogic.management.utils.ErrorCollectionException

    getCurrentProperties

    The properties of the current item in the list. Returns null if there is no current item.

       
    Operation Name"getCurrentProperties"
    ParametersObject [] {  cursor }

    where:

    • cursor is an object of type java.lang.String that specifies:

      - The cursor returned from a previous list method.

    SignatureString [] { "java.lang.String" }
    ReturnsProperties
    Exceptions
    • weblogic.management.utils.InvalidCursorException

    getPolicy

    Obtain a policy definition for a resource. A null is returned when no policy is found. <p> The PropertiesPropertiesListerMBean.

       
    Operation Name"getPolicy"
    ParametersObject [] {  resourceId }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - a security resource identifier.

    SignatureString [] { "java.lang.String" }
    ReturnsProperties
    Exceptions
    • weblogic.management.utils.InvalidParameterException

    getPolicyExpression

    Returns the expression of an existing policy.

       
    Operation Name"getPolicyExpression"
    ParametersObject [] {  resourceId }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - The resource for which this method returns the policy expression. A null value will trigger NullPointerException.

    SignatureString [] { "java.lang.String" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException

    getRegisteredPredicates

    Returns an array of class names of the registered predicates.

       
    Operation Name"getRegisteredPredicates"
    ParametersObject [] {  nameFilter }

    where:

    • nameFilter is an object of type java.lang.String that specifies:

      A string filter which can contain the wildcard (*) character and the backslash (/) escape character.

    SignatureString [] { "java.lang.String" }
    Returns class

    getResourceNames

    Returns resource names of policies associated with resources of the given type.

       
    Operation Name"getResourceNames"
    ParametersObject [] {  resourceType }

    where:

    • resourceType is an object of type java.lang.String that specifies:

      - The resource type.

    SignatureString [] { "java.lang.String" }
    Returns class

    haveCurrent

    Returns true if there are more objects in the list, and false otherwise.

       
    Operation Name"haveCurrent"
    ParametersObject [] {  cursor }

    where:

    • cursor is an object of type java.lang.String that specifies:

      - The cursor returned from a previous list method.

    SignatureString [] { "java.lang.String" }
    Returns boolean
    Exceptions
    • weblogic.management.utils.InvalidCursorException

    importData

    Imports provider specific data from a specified format. When errors occur, the MBean throws an ErrorCollectionException containing a list of java.lang.Exceptions, where the text of each exception describes the error.

       
    Operation Name"importData"
    ParametersObject [] {  formatfilenameconstraints }

    where:

    • format is an object of type java.lang.String that specifies:

      - The format for importing provider specific data.

    • filename is an object of type java.lang.String that specifies:

      - The full path to the filename used to read data.

    • constraints is an object of type java.util.Properties that specifies:

      - The constraints to be used when importing data. A null value indicates that all data will be imported.

    SignatureString [] { "java.lang.String", "java.lang.String", "java.util.Properties" }
    Returns void
    Exceptions
    • weblogic.management.utils.InvalidParameterException
    • weblogic.management.utils.ErrorCollectionException

    isRegisteredPredicate

    Specifies whether or not the predicate with specified class name is registered.

       
    Operation Name"isRegisteredPredicate"
    ParametersObject [] {  predicateClassName }

    where:

    • predicateClassName is an object of type java.lang.String that specifies:

      The name of the Java class that implements the predicate.

    SignatureString [] { "java.lang.String" }
    Returns boolean

    isSet

    Returns true if the specified attribute has been set explicitly in this MBean instance.

       
    Operation Name"isSet"
    ParametersObject [] {  propertyName }

    where:

    • propertyName is an object of type java.lang.String that specifies:

      property to check

    SignatureString [] { "java.lang.String" }
    Returns boolean
    Exceptions
    • java.lang.IllegalArgumentException

    listAllPolicies

    Obtain an unsorted list of policy definitions.

    This method returns a cursor that you can pass to the methods from weblogic.management.utils.PropertiesListerMBean (which this MBean extends) to iterate through the returned list.

       
    Operation Name"listAllPolicies"
    ParametersObject [] {  maximumToReturn }

    where:

    • maximumToReturn is an object of type java.lang.Integer that specifies:

      - The maximum number of entires to return. Use 0 to return all policy definitions.

    SignatureString [] { "java.lang.Integer" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException

    listAllURIs

    List all URI strings that have policy defined for the specified application and context path.

       
    Operation Name"listAllURIs"
    ParametersObject [] {  applicationcontextPath }

    where:

    • application is an object of type java.lang.String that specifies:

      - The name of the deployed application.

    • contextPath is an object of type java.lang.String that specifies:

      - The context path for the application.

    SignatureString [] { "java.lang.String", "java.lang.String" }
    Returns class

    listChildPolicies

    Obtain a list of policy definitions for the children of a resource.

    This method returns a cursor that you can pass to the methods from weblogic.management.utils.PropertiesListerMBean (which this MBean extends) to iterate through the returned list.

       
    Operation Name"listChildPolicies"
    ParametersObject [] {  resourceIdmaximumToReturn }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - a security resource identifier.

    • maximumToReturn is an object of type java.lang.Integer that specifies:

      - The maximum number of entires to return. Use 0 to return all policy definitions.

    SignatureString [] { "java.lang.String", "java.lang.Integer" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.InvalidParameterException

    listPoliciesByApplication

    Obtain an list of policy definitions by application name.

    This method returns a cursor that you can pass to the methods from weblogic.management.utils.PropertiesListerMBean (which this MBean extends) to iterate through the returned list.

       
    Operation Name"listPoliciesByApplication"
    ParametersObject [] {  applicationNamemaximumToReturn }

    where:

    • applicationName is an object of type java.lang.String that specifies:

      - The name of the application.

    • maximumToReturn is an object of type java.lang.Integer that specifies:

      - The maximum number of entires to return. Use 0 to return all policy definitions.

    SignatureString [] { "java.lang.String", "java.lang.Integer" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.InvalidParameterException

    listPoliciesByComponent

    Obtain an list of policy definitions for a specific J2EE component.

    This method returns a cursor that you can pass to the methods from weblogic.management.utils.PropertiesListerMBean (which this MBean extends) to iterate through the returned list.

       
    Operation Name"listPoliciesByComponent"
    ParametersObject [] {  componentNamecomponentTypeapplicationNamemaximumToReturn }

    where:

    • componentName is an object of type java.lang.String that specifies:

      - The name of the component.

    • componentType is an object of type java.lang.String that specifies:

      - The component type.

    • applicationName is an object of type java.lang.String that specifies:

      - The name of the application.

    • maximumToReturn is an object of type java.lang.Integer that specifies:

      - The maximum number of entires to return. Use 0 to return all policy definitions.

    SignatureString [] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Integer" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.InvalidParameterException

    listPoliciesByResourceType

    Obtain an list of policy definitions by resource type.

    This method returns a cursor that you can pass to the methods from weblogic.management.utils.PropertiesListerMBean (which this MBean extends) to iterate through the returned list.

       
    Operation Name"listPoliciesByResourceType"
    ParametersObject [] {  resourceTypemaximumToReturn }

    where:

    • resourceType is an object of type java.lang.String that specifies:

      - The name of the resource type specified by a weblogic.security.spi.Resource object.

    • maximumToReturn is an object of type java.lang.Integer that specifies:

      - The maximum number of entires to return. Use 0 to return all policy definitions.

    SignatureString [] { "java.lang.String", "java.lang.Integer" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.InvalidParameterException

    listRepeatingActionsPolicies

    Obtain a list of policy definitions for the actions that are repeating on a resource.

    This method returns a cursor that you can pass to the methods from weblogic.management.utils.PropertiesListerMBean (which this MBean extends) to iterate through the returned list.

    Obtain a list of policy definitions for the actions that are repeating on a resource.

       
    Operation Name"listRepeatingActionsPolicies"
    ParametersObject [] {  resourceIdmaximumToReturn }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - a security resource identifier.

    • maximumToReturn is an object of type java.lang.Integer that specifies:

      - The maximum number of entires to return. Use 0 to return all policy definitions.

    SignatureString [] { "java.lang.String", "java.lang.Integer" }
    ReturnsString
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.InvalidParameterException

    policyExists

    Indicates whether a policy exists for a resource.

       
    Operation Name"policyExists"
    ParametersObject [] {  resourceId }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - The resource within which this method searches for a policy. A null value will trigger NullPointerException.

    SignatureString [] { "java.lang.String" }
    Returns boolean

    registerPredicate

    Registers a new predicate with the specified class name.

       
    Operation Name"registerPredicate"
    ParametersObject [] {  predicateClassName }

    where:

    • predicateClassName is an object of type java.lang.String that specifies:

      The name of the Java class that implements the predicate.

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.InvalidPredicateException
    • weblogic.management.utils.AlreadyExistsException

    removePolicy

    Removes a policy.

       
    Operation Name"removePolicy"
    ParametersObject [] {  resourceId }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - The resource for which this method removes a policy. A null value may trigger NullPointerException.

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.RemoveException

    setPolicyExpression

    Sets a policy expression for a resource.

       
    Operation Name"setPolicyExpression"
    ParametersObject [] {  resourceIdexpression }

    where:

    • resourceId is an object of type java.lang.String that specifies:

      - The resource for which this method sets the policy expression. A null value will trigger NullPointerException.

    • expression is an object of type java.lang.String that specifies:

      - The expression that determines the type of access this policy allows to the resource. A null value prohibits any type of access.

    SignatureString [] { "java.lang.String", "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.NotFoundException
    • weblogic.management.utils.CreateException

    unregisterPredicate

    Unregisters the currently registered predicate.

       
    Operation Name"unregisterPredicate"
    ParametersObject [] {  predicateClassName }

    where:

    • predicateClassName is an object of type java.lang.String that specifies:

      The name of the Java class that implements predicate to be unregistered.

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • weblogic.management.utils.NotFoundException

    unSet

    Restore the given property to its default value.

       
    Operation Name"unSet"
    ParametersObject [] {  propertyName }

    where:

    • propertyName is an object of type java.lang.String that specifies:

      property to restore

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • java.lang.IllegalArgumentException
      UnsupportedOperationException if called on a runtime implementation.

    wls_getDisplayName

    Returns the display name of an MBean.

    Deprecated 9.0.0.0

       
    Operation Name"wls_getDisplayName"
    Parametersnull
    Signaturenull
    ReturnsString