com.terracotta.management.security.shiro
Class Shiro1FormattingHashService
java.lang.Object
com.terracotta.management.security.shiro.Shiro1FormattingHashService
- All Implemented Interfaces:
- PasswordHashService
public final class Shiro1FormattingHashService
- extends Object
- implements PasswordHashService
A PasswordHashService that uses SHA-1 with 1,000,000 iterations and a 16 byte salt for hashing passwords. This
service returns the hashed password encoded in the Shiro1CryptFormat.
- Author:
- brandony
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Shiro1FormattingHashService
public Shiro1FormattingHashService()
computeFormattedHash
public String computeFormattedHash(String password)
- Compute an encoded hash for the submitted password
- Specified by:
computeFormattedHash in interface PasswordHashService
- Parameters:
password - to be hashed
- Returns:
- an encoded representation of the one-way hash calculated.
Copyright © 2013 Terracotta, Inc.. All Rights Reserved.