Interface IPasswordSalt

  • All Known Implementing Classes:
    PasswordSalt, PasswordSaltBCrypt

    @MustImplementEqualsAndHashcode
    public interface IPasswordSalt
    Base interface for a password salt.
    Author:
    Philip Helger
    • Method Detail

      • getSaltByteCount

        int getSaltByteCount()
        Returns:
        The number of salt bytes used. Always > 0.
      • getSaltBytes

        @Nonnull
        @Nonempty
        @ReturnsMutableCopy
        byte[] getSaltBytes()
        Returns:
        A copy of the pure salt bytes. Never null nor empty.
      • getSaltString

        @Nonnull
        @Nonempty
        String getSaltString()
        Returns:
        The salt bytes in a string representation for easy serialization. Never null nor empty.