public class CardPermission extends PermissionA permission for Smart Card operations. A CardPermission consists of the name of the card terminal the permission applies to and a set of actions that are valid for that terminal.
A CardPermission with a name of
*applies to all card terminals. The actions string is a comma separated list of the actions listed below, or
*to signify "all actions."
Individual actions are:
- connect to a card using CardTerminal.connect()
- reset the card using Card.disconnect(true)
- establish exclusive access to a card using Card.beginExclusive() and endExclusive()
- transmit a control command using Card.transmitControlCommand()
- obtain the basic logical channel using Card.getBasicChannel()
- open a new logical channel using Card.openLogicalChannel()
- See Also:
- Serialized Form
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
equals(Object obj)Compares the specified object with this CardPermission for equality.
getActions()Returns the canonical string representation of the actions.
hashCode()Returns the hash code value for this CardPermission object.
implies(Permission permission)Checks if this CardPermission object implies the specified permission.
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
CardPermissionConstructs a new CardPermission with the specified actions.
terminalNameis the name of a CardTerminal or
*if this permission applies to all terminals.
actionscontains a comma-separated list of the individual actions or
*to signify all actions. For more information, see the documentation at the top of this class.
public String getActions()Returns the canonical string representation of the actions. It is
*to signify all actions defined by this class or the string concatenation of the comma-separated, lexicographically sorted list of individual actions.
public boolean implies(Permission permission)Checks if this CardPermission object implies the specified permission. That is the case, if and only if
permissionis an instance of CardPermission,
permission's actions are a proper subset of this object's actions, and
getName()method is either
*or equal to
public boolean equals(Object obj)Compares the specified object with this CardPermission for equality. This CardPermission is equal to another Object
object, if and only if
objectis an instance of CardPermission,
this.getName()is equal to
this.getActions()is equal to