Class ScramCredential


  • public class ScramCredential
    extends java.lang.Object
    SCRAM credential class that encapsulates the credential data persisted for each user that is accessible to the server. See RFC rfc5802 for details.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScramCredential​(byte[] salt, byte[] storedKey, byte[] serverKey, int iterations)
      Constructs a new credential.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int iterations()
      Number of iterations used to process this credential using the SCRAM algorithm.
      byte[] salt()
      Returns the salt used to process this credential using the SCRAM algorithm.
      byte[] serverKey()
      Server key computed from the client password using the SCRAM algorithm.
      byte[] storedKey()
      Stored key computed from the client password using the SCRAM algorithm.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScramCredential

        public ScramCredential​(byte[] salt,
                               byte[] storedKey,
                               byte[] serverKey,
                               int iterations)
        Constructs a new credential.
    • Method Detail

      • salt

        public byte[] salt()
        Returns the salt used to process this credential using the SCRAM algorithm.
      • serverKey

        public byte[] serverKey()
        Server key computed from the client password using the SCRAM algorithm.
      • storedKey

        public byte[] storedKey()
        Stored key computed from the client password using the SCRAM algorithm.
      • iterations

        public int iterations()
        Number of iterations used to process this credential using the SCRAM algorithm.