Class StoreAdmission
java.lang.Object
com.revetsec.StoreAdmission
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 Summary
Modifier and TypeMethodDescriptionstatic @NonNull StoreAdmissionfromIdentifiers(@NonNull String authorityId, @NonNull String recoveryGeneration) Validates and retains the two separately provisioned identifiers.Returns the authority identity.Returns the active data/recovery generation.toString()Returns a fixed description that discloses neither identifier.
-
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 bytesrecoveryGeneration- canonical unpadded Base64URL encoding of exactly 32 bytes- Returns:
- the immutable identities, without any admission or authenticity assertion
- Throws:
NullPointerException- if an argument isnullIllegalArgumentException- 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
-