class EncryptedValueDataService {

  public void rotate(final EncryptedValue encryptedValue) {
    final String decryptedValue = encryptor.decrypt(encryptedValue);
    final EncryptedValue newEncryptedValue = encryptor.encrypt(decryptedValue);
    newEncryptedValue.setUuid(encryptedValue.getUuid());
    encryptedValueRepository.saveAndFlush(newEncryptedValue);
  }

  @Autowired protected  EncryptedValueDataService(
    final EncryptedValueRepository encryptedValueRepository,
    final Encryptor encryptor);

}