Interface PermissionNode


public interface PermissionNode
Result of adding a permission node to a holder.

Describes the grant that was applied, including optional expiry and context metadata. Listing permissions via getPermissions(holder) may not round-trip timed expiry for all storage shapes.

  • Method Details

    • holder

      Returns the holder that received the grant.
      Returns:
      permission target
    • permission

      String permission()
      Returns the permission node expression that was granted.
      Returns:
      permission node
    • expiresAt

      Instant expiresAt()
      Returns when the grant expires, if timed.
      Returns:
      expiry instant, or null for permanent direct grants
    • context

      Map<String,String> context()
      Returns the context map supplied for world-scoped grants.
      Returns:
      immutable context map (empty for global grants)
    • source

      Returns provenance metadata for the grant.
      Returns:
      permission source