A GPIOPinPermission permission has a target name and a list of actions.

The target name contains hardware addressing information. The format is the one defined for the
base PeripheralPermission class with the following addition:

{channel-desc}

The {channel-desc} string (described in PeripheralPermission) is the
decimal string representation of a pin number as may be returned by a call to
GPIOPinConfig.getPinNumber. The characters in the string must
all be decimal digits.

The supported actions are open, powermanage or setdirection. Their
meaning is defined as follows:

true if the specified permission is not null and is implied by this
object, false otherwise.

newPermissionCollection

public java.security.PermissionCollection newPermissionCollection()

Returns a new PermissionCollection for storing GPIOPinPermission objects.

GPIOPinPermission objects must be stored in a manner that allows them to be inserted
into the collection in any order, but that also enables the PermissionCollection
implies method to be implemented in an efficient (and consistent) manner.

If null is returned, then the caller of this method is free to store permissions of
this type in any PermissionCollection they choose (one that uses a Hashtable, one
that uses a Vector, etc).