class SecretLockRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements SecretLockRepository {

  @Override
  public Observable<SecretLockInfo> getSecretLock(String secret) {
    Callable<SecretLockInfoDTO> callback =
        () ->
            getClient()
                .getSecretLock(
                    ConvertUtils.padHex(secret, LockHashAlgorithm.DEFAULT_SECRET_HEX_SIZE));
    return this.call(callback, this::toSecretLockInfo);
  }

  public  SecretLockRepositoryOkHttpImpl(ApiClient apiClient);

}