Method |
Description |
|
auth ( ) : boolean | void |
Displays authentication form |
|
authCheck ( ) : boolean |
Gets advanced authentication settings |
|
authFails ( ) : void |
User is not allowed to login to MySQL -> authentication failed |
|
authSetUser ( ) : boolean |
Set the user and password after last checkings if required |
|
cookieDecrypt ( string $encdata, string $secret ) : string | boolean |
Decryption using openssl's AES or phpseclib's AES
(phpseclib uses mcrypt when it is available) |
|
cookieEncrypt ( string $data, string $secret ) : string |
Encryption using openssl's AES or phpseclib's AES
(phpseclib uses mcrypt when it is available) |
|
createIV ( ) : void |
Initialization
Store the initialization vector because it will be needed for
further decryption. I don't think necessary to have one iv
per server so I don't put the server number in the cookie name. |
|
enlargeSecret ( string $secret ) : string |
Concatenates secret in order to make it 16 bytes log |
|
getAESSecret ( string $secret ) : string |
Derives AES secret from encryption secret. |
|
getIVSize ( ) : integer |
Returns size of IV for encryption. |
|
getMACSecret ( string $secret ) : string |
Derives MAC secret from encryption secret. |
|
handlePasswordChange ( string $password ) : void |
Callback when user changes password. |
|
logOut ( ) : void |
Perform logout |
|
setIV ( string $vector ) : void |
Sets encryption IV to use |
|
storePasswordCookie ( string $password ) : void |
Stores password in a cookie. |
|
storeUserCredentials ( ) : void | boolean |
Stores user credentials after successful login. |
|
storeUsernameCookie ( string $username ) : void |
Stores username in a cookie. |
|
useOpenSSL ( ) : boolean |
Checks whether we should use openssl for encryption. |
|