org.apache.karaf.jaas.modules
Interface Encryption

All Known Implementing Classes:
BasicEncryption, JasyptEncryption

public interface Encryption

Interface describing the password encryption service.

Author:
jbonofre

Method Summary
 boolean checkPassword(java.lang.String input, java.lang.String password)
           Check password.
 java.lang.String encryptPassword(java.lang.String plain)
           Encrypt a password.
 

Method Detail

encryptPassword

java.lang.String encryptPassword(java.lang.String plain)

Encrypt a password.

Parameters:
plain - the password in plain format.
Returns:
the encrypted password format.

checkPassword

boolean checkPassword(java.lang.String input,
                      java.lang.String password)

Check password.

Parameters:
input - password provided in plain format.
password - the encrypted format to compare with.
Returns:
true if the password match, false else.


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.