PHP Classes
elePHPant
Icontem

File: docs/html/classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService.xhtml

Recommend this page to a friend!
  Classes of Cyril Ogana  >  PHP User Credentials  >  docs/html/classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService.xhtml  >  Download  
File: docs/html/classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService.xhtml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP User Credentials
Implement password authentication policies
Author: By
Last change:
Date: 3 years ago
Size: 17,442 bytes
 

 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  <head>
    <title>phpDox - cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService</title>
    <link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  </head>
  <body>
    <nav class="topnav">
      <ul>
        <li>
          <div class="logo"><span>/**</span>phpDox</div>
        </li>
        <li class="separator">
          <a href="../index.xhtml">Overview</a>
        </li>
        <li class="separator">
          <a href="../namespaces.xhtml">Namespaces</a>
        </li>
        <li>
          <a href="../interfaces.xhtml">Interfaces</a>
        </li>
        <li>
          <a href="../classes.xhtml">Classes</a>
        </li>
        <li class="separator">
          <a href="../source/index.xhtml">Source</a>
        </li>
      </ul>
    </nav>
    <div id="mainstage">
      <div class="box">
        <ul class="breadcrumb">
          <li>
            <a href="../index.xhtml">Overview</a>
          </li>
          <li class="separator">
            <a href="../classes.xhtml">Classes</a>
          </li>
          <li class="separator">
            <a href="../classes.xhtml#cymapgt_core_application_authentication_UserCredential_services">cymapgt\core\application\authentication\UserCredential\services</a>
          </li>
          <li class="separator">UserCredentialPasswordLoginService</li>
        </ul>
      </div>
      <nav class="box">
        <ul>
          <li>
            <a href="#introduction">Introduction</a>
          </li>
          <li>
            <a href="#synopsis">Synopsis</a>
          </li>
          <li>
            <a href="#hierarchy">Hierarchy</a>
          </li>
          <li>
            <a href="#members">Members</a>
          </li>
          <li>
            <a href="#methods">Methods</a>
          </li>
          <li>
            <a href="../source/services/UserCredentialPasswordLoginService.php.xhtml#line23">Source</a>
          </li>
        </ul>
      </nav>
      <section>
        <h1 id="introduction"><small>cymapgt\core\application\authentication\UserCredential\services\</small>UserCredentialPasswordLoginService</h1>
        <h4>UserCredentialPasswordLoginService This service creates password hashes using the BCRYPT cipher</h4>
        <p/>
        <ul>
          <li>Author: Cyril Ogana &lt;cogana@gmail.com&gt;</li>
          <li>Copyright: Copyright (c) 2014 Cymap</li>
        </ul>
        <h2 id="synopsis">Synopsis</h2>
        <div class="synopsis">class UserCredentialPasswordLoginService
                implements
                <a title="cymapgt\core\application\authentication\UserCredential\abstractclass\UserCredentialAuthenticationInterface" href="../interfaces/cymapgt_core_application_authentication_UserCredential_abstractclass_UserCredentialAuthenticationInterface.xhtml">UserCredentialAuthenticationInterface</a>
            {<br/><ul class="none"><li>// members</li><li>private <a href="#members">$_usePasswordFlag</a>;
                    </li><li>private <a href="#members">$_multiFactorFlag</a>;
                    </li><li>private string <a href="#members">$_inputPassword</a>;
                    </li><li>private string <a href="#members">$_currentUsername</a>;
                    </li><li>private string <a href="#members">$_currentPassword</a>;
                    </li><li>private <a href="#members">$_multiFactorHandler</a>;
                    </li><li>private array <a href="#members">$_multiFactorStages</a>;
                    </li></ul><ul class="none"><li>// methods</li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/__construct.xhtml">__construct</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setUsePassword.xhtml">setUsePassword</a>()
                    </li><li>public bool <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getUsePassword.xhtml">getUsePassword</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setPassword.xhtml">setPassword</a>()
                    </li><li>public mixed <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getPassword.xhtml">getPassword</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setMultiFactor.xhtml">setMultiFactor</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setMultiFactorHandler.xhtml">setMultiFactorHandler</a>()
                    </li><li>public  <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getMultiFactorHandler.xhtml">getMultiFactorHandler</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setMultiFactorStages.xhtml">setMultiFactorStages</a>()
                    </li><li>public array <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getMultiFactorStages.xhtml">getMultiFactorStages</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/initialize.xhtml">initialize</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/authenticate.xhtml">authenticate</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setCurrentUsername.xhtml">setCurrentUsername</a>()
                    </li><li>public string <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getCurrentUsername.xhtml">getCurrentUsername</a>()
                    </li><li>public void <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setCurrentPassword.xhtml">setCurrentPassword</a>()
                    </li><li>public mixed <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getCurrentPassword.xhtml">getCurrentPassword</a>()
                    </li></ul>

            }<br/></div>
        <h2 id="hierarchy">Hierarchy</h2>
        <div class="styled">
          <h4>Implements</h4>
          <ul>
            <li>
              <a href="../interfaces/cymapgt_core_application_authentication_UserCredential_abstractclass_UserCredentialAuthenticationInterface.xhtml">cymapgt\core\application\authentication\UserCredential\abstractclass\UserCredentialAuthenticationInterface</a>
            </li>
          </ul>
        </div>
        <h2 id="members">Members</h2>
        <div class="styled members">
          <h4>private</h4>
          <ul class="members">
            <li id="_currentPassword">
              <strong>$_currentPassword</strong>
            </li>
            <li id="_currentUsername">
              <strong>$_currentUsername</strong>
            </li>
            <li id="_inputPassword">
              <strong>$_inputPassword</strong>
            </li>
            <li id="_multiFactorFlag">
              <strong>$_multiFactorFlag</strong>
            </li>
            <li id="_multiFactorHandler">
              <strong>$_multiFactorHandler</strong>
            </li>
            <li id="_multiFactorStages">
              <strong>$_multiFactorStages</strong>
            </li>
            <li id="_usePasswordFlag">
              <strong>$_usePasswordFlag</strong>
            </li>
          </ul>
        </div>
        <h2 id="methods">Methods</h2>
        <div class="styled">
          <h4>public</h4>
          <ul>
            <li id="__construct">
              <a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/__construct.xhtml">__construct()</a>
            </li>
            <li id="authenticate"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/authenticate.xhtml">authenticate()</a>
                — function authenticate() - authenticate the user after initialization</li>
            <li id="getCurrentPassword"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getCurrentPassword.xhtml">getCurrentPassword()</a>
                — function getCurrentPassword() - return the current password (hashed)</li>
            <li id="getCurrentUsername"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getCurrentUsername.xhtml">getCurrentUsername()</a>
                — function getCurrentUsername() - get the current username</li>
            <li id="getMultiFactorHandler"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getMultiFactorHandler.xhtml">getMultiFactorHandler()</a>
                — function getMultiFactorHandler - Return an instance of the multi factor handler service                                  to use ofr this authentication session</li>
            <li id="getMultiFactorStages"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getMultiFactorStages.xhtml">getMultiFactorStages()</a>
                — function getMultiFactorStages - return the multi factor stages array</li>
            <li id="getPassword"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getPassword.xhtml">getPassword()</a>
                — function getPassword()  - Return the hashed user password</li>
            <li id="getUsePassword"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/getUsePassword.xhtml">getUsePassword()</a>
                — function getUsePassword() - Return the use password flag</li>
            <li id="initialize"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/initialize.xhtml">initialize()</a>
                — function initialize() - initialize the service, bootstrap before any processing</li>
            <li id="setCurrentPassword"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setCurrentPassword.xhtml">setCurrentPassword()</a>
                — function setCurrentPassword() - set the current password</li>
            <li id="setCurrentUsername"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setCurrentUsername.xhtml">setCurrentUsername()</a>
                — function setCurrentUsername($username) - set the current username</li>
            <li id="setMultiFactor"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setMultiFactor.xhtml">setMultiFactor()</a>
                — function setMultiFactor($flag) - Set whether this service uses multi factor auth</li>
            <li id="setMultiFactorHandler"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setMultiFactorHandler.xhtml">setMultiFactorHandler()</a>
                — function setMultiFactorHandler - Provide namespace of the multi factor handler service,                                  which has to implement the interface                                  cymapgt\core\application\authentication\abstractclass\UserCredentialAuthenticationMultiFactorInterface</li>
            <li id="setMultiFactorStages"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setMultiFactorStages.xhtml">setMultiFactorStages()</a>
                — function setMultiFactorStages - in an array, configure the steps of the multifactor login, passing                                 numeric stage names, types and handler calls</li>
            <li id="setPassword"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setPassword.xhtml">setPassword()</a>
                — function setPassword() - Set the user password, and hash it</li>
            <li id="setUsePassword"><a title="cymapgt\core\application\authentication\UserCredential\services\UserCredentialPasswordLoginService" href="../classes/cymapgt_core_application_authentication_UserCredential_services_UserCredentialPasswordLoginService/setUsePassword.xhtml">setUsePassword()</a>
                — function setUserPassword() - Specify whether the method uses password                              (set e.g. user log in, lDAP, 2 FACTOR (step 1) Cyril Ogana &lt;cogana@gmail.com&gt; - 2014-02-13</li>
          </ul>
        </div>
      </section>
    </div>
    <footer>
      <span>Generated using phpDox 0.7.0 - Copyright (C) 2010 - 2015 by Arne Blankerts</span>
    </footer>
  </body>
</html>