public final class APDUPermission
extends java.security.Permission
Constructor and Description |
---|
APDUPermission(java.lang.String name)
Creates a new APDUPermission object with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks two APDUPermission objects for equality.
|
java.lang.String |
getActions()
Returns the canonical string representation of the actions,
which is the empty string "", since there are no actions for
a APDUPermission.
|
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(java.security.Permission p)
Checks if the specified permission is "implied" by
this object.
|
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing APDUPermission
objects.
|
public APDUPermission(java.lang.String name)
name
- the name of the APDUPermissionpublic boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies
in class java.security.Permission
p
- the permission to check against.public boolean equals(java.lang.Object obj)
equals
in class java.security.Permission
obj
- the object we are testing for equality with this object.public int hashCode()
getName().hashCode()
, where getName
is
from the Permission superclass.hashCode
in class java.security.Permission
public java.lang.String getActions()
getActions
in class java.security.Permission
public java.security.PermissionCollection newPermissionCollection()
A APDUPermissionCollection stores a collection of APDUPermission permissions.
APDUPermission objects must be stored in a manner that allows them
to be inserted in any order, but that also enables the
PermissionCollection implies
method
to be implemented in an efficient (and consistent) manner.
newPermissionCollection
in class java.security.Permission
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.