Class SHA256PasswordHash

  • All Implemented Interfaces:
    javax.security.enterprise.identitystore.PasswordHash

    public class SHA256PasswordHash
    extends Object
    implements javax.security.enterprise.identitystore.PasswordHash

    Implementation of the PasswordHash interface that uses the SHA256 algorithm

    Copyright 2018 (C) by Martin Ganserer

    Version:
    1.0.0
    Author:
    Martin Ganserer
    • Constructor Detail

      • SHA256PasswordHash

        public SHA256PasswordHash()
    • Method Detail

      • generate

        public String generate​(char[] password)
        Specified by:
        generate in interface javax.security.enterprise.identitystore.PasswordHash
      • verify

        public boolean verify​(char[] password,
                              String hashedPassword)
        Specified by:
        verify in interface javax.security.enterprise.identitystore.PasswordHash