Class StoreAdmission

java.lang.Object
com.revetsec.StoreAdmission

@Immutable @CheckReturnValue public final class StoreAdmission extends Object
Immutable identities of an authority and its active data/recovery admission.

This carrier validates identifier syntax only. It does not authenticate an authority, establish admission, generate an identity or reinterpret an engine's existing recovery-epoch address.

Since:
1.0.0
  • Method Details

    • fromIdentifiers

      public static @NonNull StoreAdmission fromIdentifiers(@NonNull String authorityId, @NonNull String recoveryGeneration)
      Validates and retains the two separately provisioned identifiers.
      Parameters:
      authorityId - canonical unpadded Base64URL encoding of exactly 32 bytes
      recoveryGeneration - canonical unpadded Base64URL encoding of exactly 32 bytes
      Returns:
      the immutable identities, without any admission or authenticity assertion
      Throws:
      NullPointerException - if an argument is null
      IllegalArgumentException - if an identifier is not in the exact canonical form
      Since:
      1.0.0
    • getAuthorityId

      Returns the authority identity.
      Returns:
      the canonical authority identifier
      Since:
      1.0.0
    • getRecoveryGeneration

      Returns the active data/recovery generation.
      Returns:
      the canonical recovery-generation identifier
      Since:
      1.0.0
    • toString

      Returns a fixed description that discloses neither identifier.
      Overrides:
      toString in class Object
      Returns:
      the redacted description
      Since:
      1.0.0