public final class WrapperUserEventPermission
extends java.security.BasicPermission
The following are examples of how to specify the permission within a policy file. Specific N codes of the USER_N events can be configured, or optionally all can be allowed.
grant codeBase "file:../lib/-" {
// Grant the specific USER_N codes which can be set.
permission org.tanukisoftware.wrapper.security.WrapperUserEventPermission "100";
permission org.tanukisoftware.wrapper.security.WrapperUserEventPermission "100, 101, 102";
permission org.tanukisoftware.wrapper.security.WrapperUserEventPermission "100-120";
permission org.tanukisoftware.wrapper.security.WrapperUserEventPermission "*";
};
| Constructor and Description |
|---|
WrapperUserEventPermission(java.lang.String codes)
Creates a new WrapperUserEventPermission for the specified user event(s).
|
WrapperUserEventPermission(java.lang.String name,
java.lang.String codes)
Creates a new WrapperUserEventPermission for the specified user event(s).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActions()
Return the canonical string representation of the registered user-event codes.
|
boolean |
implies(java.security.Permission p2)
Checks if this WrapperUserEventPermission object "implies" the
specified permission.
|
public WrapperUserEventPermission(java.lang.String codes)
codes - A comma-separated list of user-event codes or code ranges to be registered.public WrapperUserEventPermission(java.lang.String name,
java.lang.String codes)
name - Name of the permission.codes - A comma-separated list of user-event codes or code ranges to be registered.public java.lang.String getActions()
getActions in class java.security.BasicPermissionpublic boolean implies(java.security.Permission p2)
More specifically, this method returns true if:
implies in class java.security.BasicPermissionp2 - the permission to check against.Copyright 1999, 2026 Tanuki Software Inc., All Rights Reserved.