Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6426226

(smartcardio) specification for CardPermission.implies(Permission permission) is insufficient

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • security-libs
    • None

      Problem description:
      ====================

      Quotation from spec for javax.smartcardio.CardPermission.implies(Permission permission):
      ---Cut---
      Checks if this CardPermission object implies the specified permission.

      Specified by:
      implies in class Permission
       
      Returns:
      true if this CardPermission object implies the specified permission.
      ---Cut---


      So, javax.smartcardio.CardPermission is subclass of java.security.Permission class.


      Quotation from spec from java.security.Permission.implies(Permission permission):
      ---Cut---
      Checks if the specified permission's actions are "implied by" this object's actions.

      This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.
      ---Cut---

      In other words only Permission's subclasses should define the semantics.
      So, we need to have clear definition of what means "implies by" in case of CardPermission.

      For example of such specification you can look spec for for java.io.FilePermission.implies(Permission permission).

            andreas Andreas Sterbenz
            vsmelovsunw Vladimir Smelov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: