| |
|
| org.jboss.crypto.digest.DigestCallback
All known Subclasses: org.jboss.security.auth.spi.RFC2617Digest,
DigestCallback | public interface DigestCallback (Code) | | An interface that can be used to augment the behavior of a digest hash.
One example usecase is with the password based login modules to
modify the behavior of the hashing to introduce prefix/suffix salts.
author: Scott.Stark@jboss.org version: $Revision: 57203 $ |
Method Summary | |
public void | init(Map options) Pass through access to the login module options. | public void | postDigest(MessageDigest digest) Post-hash callout afer the password has been added to allow for content
after the password has been added. | public void | preDigest(MessageDigest digest) Pre-hash callout to allow for content before the password. |
init | public void init(Map options)(Code) | | Pass through access to the login module options. When coming from a
login module this includes the following keys:
javax.security.auth.login.name - for the username
javax.security.auth.login.password - for the String password
|
postDigest | public void postDigest(MessageDigest digest)(Code) | | Post-hash callout afer the password has been added to allow for content
after the password has been added. Any content should be added using the
MessageDigest update methods.
Parameters: digest - - the security digest being used for the one-way hash |
preDigest | public void preDigest(MessageDigest digest)(Code) | | Pre-hash callout to allow for content before the password. Any content
should be added using the MessageDigest update methods.
Parameters: digest - - the security digest being used for the one-way hash |
|
|
|