Class SHA256PasswordHash
- java.lang.Object
-
- net.sourceforge.jbizmo.commons.server.security.SHA256PasswordHash
-
- All Implemented Interfaces:
javax.security.enterprise.identitystore.PasswordHash
public class SHA256PasswordHash extends Object implements javax.security.enterprise.identitystore.PasswordHash
Implementation of the
PasswordHashinterface that uses the SHA256 algorithmCopyright 2018 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
-
Constructor Summary
Constructors Constructor Description SHA256PasswordHash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgenerate(char[] password)booleanverify(char[] password, String hashedPassword)
-
-
-
Method Detail
-
generate
public String generate(char[] password)
- Specified by:
generatein interfacejavax.security.enterprise.identitystore.PasswordHash
-
verify
public boolean verify(char[] password, String hashedPassword)- Specified by:
verifyin interfacejavax.security.enterprise.identitystore.PasswordHash
-
-