@Immutable public class ScalarSecretRegistry extends java.lang.Object implements SecretRegistry
Constructor and Description |
---|
ScalarSecretRegistry(com.scalar.db.api.DistributedStorage storage,
com.scalar.dl.ledger.crypto.Cipher cipher) |
Modifier and Type | Method and Description |
---|---|
void |
bind(SecretEntry entry) |
SecretEntry |
lookup(SecretEntry.Key key) |
void |
unbind(SecretEntry.Key key) |
@Inject public ScalarSecretRegistry(com.scalar.db.api.DistributedStorage storage, com.scalar.dl.ledger.crypto.Cipher cipher)
public void bind(SecretEntry entry)
bind
in interface SecretRegistry
public void unbind(SecretEntry.Key key)
unbind
in interface SecretRegistry
@Nullable public SecretEntry lookup(SecretEntry.Key key)
lookup
in interface SecretRegistry