Class SaltedPasswordValidationProviderV1Impl

  • All Implemented Interfaces:
    KeyValidationProvider

    public class SaltedPasswordValidationProviderV1Impl
    extends Object
    implements KeyValidationProvider
    This KeyValidationProvider is used to validate passwords. A password is salted with a randomly-generated salt and then an SHA-256 digest of the salt + password is generated as the key. This key is appropriate for long-term storage, as the salt hopefully prevents against rainbow attacks. The key can then be used to validate a password in the future. When validating, the key is expected as the primary argument to isValidKey(String, String...), while the password is expected as the first optional argument.
    Author:
    bdferris