Interface ConfigurableHashService

  • All Superinterfaces:
    HashService
    All Known Implementing Classes:
    DefaultHashService

    public interface ConfigurableHashService
    extends HashService
    A HashService that allows configuration of its strategy via JavaBeans-compatible setter methods.
    Since:
    1.2
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setHashAlgorithmName​(String name)
      Sets the name of the MessageDigest algorithm that will be used to compute hashes.
      void setHashIterations​(int iterations)
      Sets the number of hash iterations that will be performed during hash computation.
      void setPrivateSalt​(org.apache.shiro.util.ByteSource privateSalt)
      Sets the 'private' (internal) salt to be paired with a 'public' (random or supplied) salt during hash computation.
      void setRandomNumberGenerator​(org.apache.shiro.crypto.RandomNumberGenerator rng)
      Sets a source of randomness used to generate public salts that will in turn be used during hash computation.
    • Method Detail

      • setPrivateSalt

        void setPrivateSalt​(org.apache.shiro.util.ByteSource privateSalt)
        Sets the 'private' (internal) salt to be paired with a 'public' (random or supplied) salt during hash computation.
        Parameters:
        privateSalt - the 'private' internal salt to be paired with a 'public' (random or supplied) salt during hash computation.
      • setHashIterations

        void setHashIterations​(int iterations)
        Sets the number of hash iterations that will be performed during hash computation.
        Parameters:
        iterations - the number of hash iterations that will be performed during hash computation.
      • setHashAlgorithmName

        void setHashAlgorithmName​(String name)
        Sets the name of the MessageDigest algorithm that will be used to compute hashes.
        Parameters:
        name - the name of the MessageDigest algorithm that will be used to compute hashes.
      • setRandomNumberGenerator

        void setRandomNumberGenerator​(org.apache.shiro.crypto.RandomNumberGenerator rng)
        Sets a source of randomness used to generate public salts that will in turn be used during hash computation.
        Parameters:
        rng - a source of randomness used to generate public salts that will in turn be used during hash computation.