Additional top-level class in compilation unit: DmtPrincipalPermissionCollection.
DmtPrincipalPermission has a target string which controls the name of
the principal on whose behalf the protocol adapter can act. A wildcard is
allowed at the end of the target string, to allow using any principal name
with the given prefix. The "*" target means the adapter can create
a session in the name of any principal.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DmtPrincipalPermission(String
the name of the principal, can end with target)* to match
any principal with the given prefixCreates a new |
| public | DmtPrincipalPermission(String
the name of the principal, can end with target, String * to match
any principal with the given prefixno actions defined, must be "*" for forward compatibility actions)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the parameter represents the same permissions as
this instancethe object to compare to this DmtPrincipalPermission instance obj)Implements abstract java. Checks whether the given object is equal to this DmtPrincipalPermission instance. |
| public String | Returns: the action string "*"Implements abstract java. Returns the action list (always |
| public int | Returns: hash code for this permission objectImplements abstract java. Returns the hash code for this permission object. |
| public boolean | Returns: true if this DmtPrincipalPermission instance implies the specified permissionthe permission to check for implication p)Implements abstract java. Checks if this DmtPrincipalPermission object implies the specified permission. |
| pack-priv boolean | |
| public PermissionCollection | Returns: the new PermissionCollectionOverrides java. Returns a new PermissionCollection object for storing DmtPrincipalPermission objects. |
| isPrefix | back to summary |
|---|---|
| private final boolean isPrefix | |
| principal | back to summary |
|---|---|
| private final String principal | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DmtPrincipalPermission | back to summary |
|---|---|
| public DmtPrincipalPermission(String target) Creates a new
| |
| DmtPrincipalPermission | back to summary |
|---|---|
| public DmtPrincipalPermission(String target, String actions) Creates a new
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Checks whether the given object is equal to this DmtPrincipalPermission instance. Two DmtPrincipalPermission instances are equal if they have the same target string. | |
| getActions | back to summary |
|---|---|
| public String getActions() Implements abstract java. Returns the action list (always | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Returns the hash code for this permission object. If two
DmtPrincipalPermission objects are equal according to the
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Implements abstract java. Checks if this DmtPrincipalPermission object implies the specified permission. Another DmtPrincipalPermission instance is implied by this permission either if the target strings are identical, or if this target can be made identical to the other target by replacing a trailing "*" with any string.
| |
| impliesPrincipal | back to summary |
|---|---|
| pack-priv boolean impliesPrincipal(DmtPrincipalPermission p) | |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a new PermissionCollection object for storing DmtPrincipalPermission objects.
| |