Interface RevocationView


public interface RevocationView
One group's accepted revocations as every enforcement point asks about them (SPEC ยง6.1, v0.1.13): peers by identity, and agents and agent keys under the freeze rule of CredentialRevocation. Implemented in peering over the group's registries; the interface lives here so the space, discovery, and capability layers can consult it without depending on peering.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RevocationView
    A view that revokes nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    refuses(AgentId agent, byte[] agentKey, Instant signingTime)
    Whether a newly arriving signature by an agent is refused: its peer is revoked, or the agent (or the key it signed with) is revoked and the revocation's freeze rule refuses this signing time.
    default boolean
    revoked(AgentId agent, byte[] agentKey)
    Whether an agent is revoked at all, at any time (its peer, the agent, or the given key): the test for acting now, such as serving it a key or counting its ballot.
    boolean
    Whether a peer's identity is revoked.
  • Field Details

    • NONE

      static final RevocationView NONE
      A view that revokes nothing.
  • Method Details

    • revoked

      boolean revoked(PeerId peer)
      Whether a peer's identity is revoked.
      Parameters:
      peer - the peer
      Returns:
      whether it is revoked
    • refuses

      boolean refuses(AgentId agent, byte[] agentKey, Instant signingTime)
      Whether a newly arriving signature by an agent is refused: its peer is revoked, or the agent (or the key it signed with) is revoked and the revocation's freeze rule refuses this signing time. What a replica already holds is never re-judged.
      Parameters:
      agent - the signing agent
      agentKey - the agent's raw public key when it signed with a key of its own, or null for a peer-signed agent (then only agent-wide revocations apply)
      signingTime - when the signature was made, or null when that is not trustworthy (a claim, whose stamp a renewal keeps), which refuses under any revocation
      Returns:
      whether the signature is refused
    • revoked

      default boolean revoked(AgentId agent, byte[] agentKey)
      Whether an agent is revoked at all, at any time (its peer, the agent, or the given key): the test for acting now, such as serving it a key or counting its ballot.
      Parameters:
      agent - the agent
      agentKey - its raw public key, or null
      Returns:
      whether anything revokes it