| java.lang.Object org.esupportail.cas.server.util.crypt.Crypt
Crypt | abstract public class Crypt (Code) | | This class offers encryption methods used by handlers encrypting
users' passwords and comparing them to a reference (file or
database).
author: Jean-Baptiste Daniel |
Method Summary | |
public static boolean | isEncryptionSupported(String encryption) Tell if an encryption is supported. | public static boolean | match(String encryption, String password, String encryptedPassword) Compare a password with its encryption using an encryption method. |
isEncryptionSupported | public static boolean isEncryptionSupported(String encryption)(Code) | | Tell if an encryption is supported.
Parameters: encryption - an encryption true if the encryption is supported, false otherwise. |
match | public static boolean match(String encryption, String password, String encryptedPassword) throws Exception(Code) | | Compare a password with its encryption using an encryption method.
Parameters: encryption - an encryption method (must be supported) Parameters: password - the password Parameters: encryptedPassword - the encrypted password true if password matches, false otherwise throws: Exception - when encryption is not supprted. |
|
|