Deprecated methods of CredentialRepresentation class

We have created a wrapper project on Keycloak 3.4.3. Final. we were using CredentialRepresentation class methods like below.

 ![image|690x140](upload://8ldyLsY89kVnaD2yde1nHO2ANrH.png) 

We are now upgrading to 10.0.2 and we noticed that few methods have been deprecated from 8.0 version onwards. In this case, do we have any alternate methods to use? if no alternatives how did deprecated methods functionality been handled in new versions?

mehtods that are removed and we are looking for aternatives are:

  1. credentials.setAlgorithm();
  2. credentials.setHashIterations();
  3. credentials.setSalt();
  4. credentials.setHashedSaltedValue();