Class DisclosureService.IssuedCapability
java.lang.Object
zeroecho.pki.server.DisclosureService.IssuedCapability
- Enclosing class:
DisclosureService
One-time raw-token issuance result.
-
Constructor Summary
ConstructorsConstructorDescriptionIssuedCapability(DisclosureService.Capability capability, byte[] token) Validates and snapshots the one-time token. -
Method Summary
Modifier and TypeMethodDescriptionReturns the persisted commitment-only metadata.byte[]token()Returns and clears the raw token exactly once.
-
Constructor Details
-
IssuedCapability
Validates and snapshots the one-time token.- Parameters:
capability- persisted commitment-only capability metadatatoken- exact 32-byte raw bearer token
-
-
Method Details
-
capability
Returns the persisted commitment-only metadata.- Returns:
- persisted capability metadata
-
token
public byte[] token()Returns and clears the raw token exactly once.- Returns:
- defensive copy of the raw 32-byte token
-