org.jboss.seam.security.management
Class PasswordHashEncoder

java.lang.Object
  extended by org.jboss.seam.security.management.PasswordHashEncoder
All Implemented Interfaces:
CredentialProcessor

public class PasswordHashEncoder
extends Object
implements CredentialProcessor

Default password encoder, creates password hashes.

Author:
Shane Bryzak

Constructor Summary
PasswordHashEncoder()
           
 
Method Summary
 String encode(org.picketlink.idm.api.Credential credential, Map<String,Object> options)
          Encodes the specified credential and returns a String representation of the encoded result.
 String getPasswordHash()
           
 int getPasswordIterations()
           
 void setPasswordHash(String passwordHash)
           
 void setPasswordIterations(int passwordIterations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordHashEncoder

public PasswordHashEncoder()
Method Detail

getPasswordHash

public String getPasswordHash()

setPasswordHash

public void setPasswordHash(String passwordHash)

getPasswordIterations

public int getPasswordIterations()

setPasswordIterations

public void setPasswordIterations(int passwordIterations)

encode

public String encode(org.picketlink.idm.api.Credential credential,
                     Map<String,Object> options)
Description copied from interface: CredentialProcessor
Encodes the specified credential and returns a String representation of the encoded result.

Specified by:
encode in interface CredentialProcessor
Parameters:
credential - The credential to encode
options - Encoding options
Returns:
The encoded credential


Copyright © 2011 Seam Framework. All Rights Reserved.