class MultiTenancyUserUtil {

  public static Optional<String> enclavePublicKey(final Optional<User> user) {
    return user.map(u -> u.principal().getString(ENCLAVE_PRIVACY_PUBLIC_KEY_CLAIM));
  }

}