Description Syntax Examples listPermissions

4-64 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

4.6.8.1 Description

Removes a permission for a given code base or URL. In the event of an error, the command returns a WLSTException.

4.6.8.2 Syntax

Optional arguments are enclosed in between square brackets. revokePermission[appStripe,] [codeBaseURL,] [principalClass,] [principalName,] permClass, [permTarget,] [permActions]

4.6.8.3 Examples

The following invocation removes the application permission for the application with application stripe myApp with the specified data: wls:mydomainserverConfig revokePermissionappStripe=myApp, principalClass=my.custom.Principal, principalName=manager, permClass=java.security.AllPermission The following invocation removes the system permission with the specified data: wls:mydomainserverConfig revokePermissionprincipalClass=my.custom.Principal, principalName=manager, permClass=java.io.FilePermission, permTarget=tmpfileName.ext, permActions=read,write

4.6.9 listPermissions

Online command that lists all permissions granted to a given principal.

4.6.9.1 Description

Lists all permissions granted to a given principal. In the event of an error, the command returns a WLSTException.

4.6.9.2 Syntax

Optional arguments are enclosed in between square brackets. listPermissions[appStripe,] principalClass, principalName Argument Definition appStripe Specifies an application stripe. If not specified, the command works on system policies. codeBaseURL Specifies the URL of the code granted the permission. principalClass Specifies the fully qualified name of a class grantee. principalName Specifies the name of the grantee principal. permClass Specifies the fully qualified name of the permission class. permTarget Specifies, when available, the name of the permission target. Some permissions may not include this attribute. permActions Specifies a comma-separated list of actions granted. Some permissions may not include this attribute and the actions available depend on the permission class. Infrastructure Security Custom WLST Commands 4-65

4.6.9.3 Examples

The following invocation lists all permissions granted to a principal by the policies of application myApp: wls:mydomainserverConfig listPermissionsappStripe=myApp, principalClass=my.custom.Principal,principalName=manager The following invocation lists all permissions granted to a principal by system policies: wls:mydomainserverConfig listPermissionsprincipalClass=my.custom.Principal, principalName=manager

4.6.10 deleteAppPolicies