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 Summary
Modifier and TypeMethodDescriptioncontext()Returns the context map supplied for world-scoped grants.Returns when the grant expires, if timed.holder()Returns the holder that received the grant.Returns the permission node expression that was granted.source()Returns provenance metadata for the grant.
-
Method Details
-
holder
PermissionHolder 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
nullfor permanent direct grants
-
context
Returns the context map supplied for world-scoped grants.- Returns:
- immutable context map (empty for global grants)
-
source
PermissionSource source()Returns provenance metadata for the grant.- Returns:
- permission source
-