ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSecuritySettings Class Reference

Singleton class that stores all security settings. More...

+ Collaboration diagram for ilSecuritySettings:

Public Member Functions

 getSecuritySettingsRefId ()
 setAccountSecurityMode ($a_mode)
 set the account security mode
 getAccountSecurityMode ()
 get the account security mode
 setPasswordCharsAndNumbersEnabled ($a_chars_and_numbers_enabled)
 set if the passwords have to contain characters and numbers
 isPasswordCharsAndNumbersEnabled ()
 get boolean if the passwords have to contain characters and numbers
 setPasswordSpecialCharsEnabled ($a_password_special_chars_enabled)
 set if the passwords have to contain special characters
 isPasswordSpecialCharsEnabled ()
 get boolean if the passwords have to contain special characters
 setPasswordMinLength ($a_password_min_length)
 set the minimum length for passwords
 getPasswordMinLength ()
 get the minimum length for passwords
 setPasswordMaxLength ($a_password_max_length)
 set the maximum length for passwords
 getPasswordMaxLength ()
 get the maximum length for passwords
 setPasswordMaxAge ($a_password_max_age)
 set the maximum password age
 getPasswordMaxAge ()
 get the maximum password age
 setLoginMaxAttempts ($a_login_max_attempts)
 set the maximum count of login attempts
 getLoginMaxAttempts ()
 get the maximum count of login attempts
 setAutomaticHTTPSEnabled ($varname)
 write access to enable automatic https detection
 setAutomaticHTTPSHeaderName ($varname)
 set header name for automatic https detection
 setAutomaticHTTPSHeaderValue ($varname)
 set header value for automatic https detection
 getAutomaticHTTPSHeaderName ()
 read access to header name for automatic https detection
 getAutomaticHTTPSHeaderValue ()
 read access to header value for automatic https detection
 isAutomaticHTTPSEnabled ()
 read access to switch if automatic https detection is enabled
 setHTTPSEnabled ($value)
 Enable https for certain scripts.
 isHTTPSEnabled ()
 read access to https enabled property
 setPasswordChangeOnFirstLoginEnabled ($a_password_change_on_first_login_enabled)
 set if the passwords have to be changed by users on first login
 isPasswordChangeOnFirstLoginEnabled ()
 get boolean if the passwords have to be changed by users on first login
 save ()
 Save settings.
 validate ()
 validate settings
 isPreventionOfSimultaneousLoginsEnabled ()
 Prevention of simultaneous logins with the same account.
 setPreventionOfSimultaneousLogins ($value)
 Enable/Disable prevention of simultaneous logins with the same account.
 getExamUserAgent ()
 read secure useragent
 setExamUserAgent ($a_useragent)
 set secure useragent
 getExamRoleId ()
 read exam role_id
 setExamRoleId ($a_role_id)
 set exam role_id
 getExamSkin ()
 read exam skin
 setExamSkin ($a_exam_skin)
 set exam skin

Static Public Member Functions

static _getInstance ()
 Get instance of ilSecuritySettings.

Data Fields

const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH = 4
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH = 5
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE = 6
const SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS = 7
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 = 8
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 = 9
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH = 10
const ACCOUNT_SECURITY_MODE_DEFAULT = 1
const ACCOUNT_SECURITY_MODE_CUSTOMIZED = 2
const DEFAULT_EXAM_USERAGENT = ''
const DEFAULT_EXAM_ROLE_ID = 4
const DEFAULT_EXAM_SKIN = 'naviless'

Static Public Attributes

static $SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS = 1
static $SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE = 2
static $SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE = 3

Private Member Functions

 __construct ()
 Private constructor: use _getInstance()
 read ()
 read settings

Private Attributes

 $db
 $settings
 $https_header_enable
 $https_header_name
 $https_header_value
 $https_enable
 $account_security_mode = self::ACCOUNT_SECURITY_MODE_DEFAULT
 $password_chars_and_numbers_enabled = false
 $password_special_chars_enabled = false
 $password_min_length = 0
 $password_max_length = 0
 $password_max_age = 0
 $login_max_attempts = 0
 $password_change_on_first_login_enabled = false
 $prevent_simultaneous_logins = false
 $exam_useragent = ''
 $exam_role_id = 0
 $exam_skin = ''

Static Private Attributes

static $instance = null

Detailed Description

Singleton class that stores all security settings.

Author
Roland Küstermann rolan.nosp@m.d@ku.nosp@m.ester.nosp@m.mann.nosp@m..com
Version
$Id$

/

Definition at line 34 of file class.ilSecuritySettings.php.

Constructor & Destructor Documentation

ilSecuritySettings::__construct ( )
private

Private constructor: use _getInstance()

private

Parameters

Definition at line 91 of file class.ilSecuritySettings.php.

References $ilDB, $ilSetting, and read().

{
global $ilSetting,$ilDB;
$this->db = $ilDB;
$this->settings = $ilSetting;
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

static ilSecuritySettings::_getInstance ( )
static
ilSecuritySettings::getAccountSecurityMode ( )

get the account security mode

Returns
integer account security mode

Definition at line 141 of file class.ilSecuritySettings.php.

References $account_security_mode.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getAutomaticHTTPSHeaderName ( )

read access to header name for automatic https detection

Returns
string header name

Definition at line 310 of file class.ilSecuritySettings.php.

References $https_header_name.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getAutomaticHTTPSHeaderValue ( )

read access to header value for automatic https detection

Returns
string header value

Definition at line 320 of file class.ilSecuritySettings.php.

References $https_header_value.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getExamRoleId ( )

read exam role_id

Returns
integer

Definition at line 575 of file class.ilSecuritySettings.php.

References $exam_role_id.

Referenced by save().

{
}

+ Here is the caller graph for this function:

ilSecuritySettings::getExamSkin ( )

read exam skin

Returns
string

Definition at line 595 of file class.ilSecuritySettings.php.

References $exam_skin.

Referenced by save().

{
}

+ Here is the caller graph for this function:

ilSecuritySettings::getExamUserAgent ( )

read secure useragent

Returns
string

Definition at line 556 of file class.ilSecuritySettings.php.

References $exam_useragent.

Referenced by save().

{
}

+ Here is the caller graph for this function:

ilSecuritySettings::getLoginMaxAttempts ( )

get the maximum count of login attempts

Returns
integer password max login attempts

Definition at line 269 of file class.ilSecuritySettings.php.

References $login_max_attempts.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMaxAge ( )

get the maximum password age

Returns
integer password max age

Definition at line 249 of file class.ilSecuritySettings.php.

References $password_max_age.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMaxLength ( )

get the maximum length for passwords

Returns
integer password max length

Definition at line 229 of file class.ilSecuritySettings.php.

References $password_max_length.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMinLength ( )

get the minimum length for passwords

Returns
integer password min length

Definition at line 209 of file class.ilSecuritySettings.php.

References $password_min_length.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getSecuritySettingsRefId ( )

Definition at line 118 of file class.ilSecuritySettings.php.

References $ref_id.

{
return $this->ref_id;
}
ilSecuritySettings::isAutomaticHTTPSEnabled ( )

read access to switch if automatic https detection is enabled

Returns
boolean true, if detection is enabled, false otherwise

Definition at line 330 of file class.ilSecuritySettings.php.

References $https_header_enable.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::isHTTPSEnabled ( )

read access to https enabled property

Returns
boolean true, if enabled, false otherwise

Definition at line 350 of file class.ilSecuritySettings.php.

References $https_enable.

Referenced by save(), and validate().

{
}

+ Here is the caller graph for this function:

ilSecuritySettings::isPasswordChangeOnFirstLoginEnabled ( )

get boolean if the passwords have to be changed by users on first login

Returns
boolean password change on first login enabled

Definition at line 374 of file class.ilSecuritySettings.php.

References $password_change_on_first_login_enabled.

Referenced by save().

+ Here is the caller graph for this function:

ilSecuritySettings::isPasswordCharsAndNumbersEnabled ( )

get boolean if the passwords have to contain characters and numbers

Returns
boolean characters and numbers enabled

Definition at line 165 of file class.ilSecuritySettings.php.

References $password_chars_and_numbers_enabled.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::isPasswordSpecialCharsEnabled ( )

get boolean if the passwords have to contain special characters

Returns
boolean password special chars enabled

Definition at line 189 of file class.ilSecuritySettings.php.

References $password_special_chars_enabled.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::isPreventionOfSimultaneousLoginsEnabled ( )

Prevention of simultaneous logins with the same account.

Returns
boolean true, if prevention of simultaneous logins with the same account is enabled, false otherwise

Definition at line 535 of file class.ilSecuritySettings.php.

References $prevent_simultaneous_logins.

Referenced by save().

+ Here is the caller graph for this function:

ilSecuritySettings::read ( )
private

read settings

private

Parameters

Definition at line 415 of file class.ilSecuritySettings.php.

References $ilDB, $query, $res, $row, and DB_FETCHMODE_ASSOC.

Referenced by __construct().

{
global $ilDB;
$query = "SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
"WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,'integer')." ".
"AND object_data.type = 'ps' ".
"AND object_reference.ref_id = tree.child ".
"AND object_reference.obj_id = object_data.obj_id";
$res = $this->db->query($query);
$this->ref_id = $row["ref_id"];
$this->https_header_enable = (bool) $this->settings->get('ps_auto_https_enabled',false);
$this->https_header_name = (string) $this->settings->get('ps_auto_https_headername',"ILIAS_HTTPS_ENABLED");
$this->https_header_value = (string) $this->settings->get('ps_auto_https_headervalue',"1");
$this->https_enable = (boolean) $this->settings->get('https', false);
$this->account_security_mode = (int) $this->settings->get('ps_account_security_mode',0);
$this->password_chars_and_numbers_enabled = (bool) $this->settings->get('ps_password_chars_and_numbers_enabled',false);
$this->password_special_chars_enabled = (bool) $this->settings->get('ps_password_special_chars_enabled',false);
$this->password_min_length = (int) $this->settings->get('ps_password_min_length',0);
$this->password_max_length = (int) $this->settings->get('ps_password_max_length',0);
$this->password_max_age = (int) $this->settings->get('ps_password_max_age',0);
$this->login_max_attempts = (int) $this->settings->get('ps_login_max_attempts',0);
$this->password_change_on_first_login_enabled = (bool) $this->settings->get('ps_password_change_on_first_login_enabled',false);
$this->prevent_simultaneous_logins = (bool) $this->settings->get('ps_prevent_simultaneous_logins', false);
/* Change Sn */
$this->exam_useragent = (string) $this->settings->get('ps_exam_useragent', self::DEFAULT_EXAM_USERAGENT);
$this->exam_role_id = (int) $this->settings->get('ps_exam_role_id', self::DEFAULT_EXAM_ROLE_ID);
$this->exam_skin = (string) $this->settings->get('ps_exam_skin', "");
}

+ Here is the caller graph for this function:

ilSecuritySettings::save ( )

Save settings.

Definition at line 384 of file class.ilSecuritySettings.php.

References getAccountSecurityMode(), getAutomaticHTTPSHeaderName(), getAutomaticHTTPSHeaderValue(), getExamRoleId(), getExamSkin(), getExamUserAgent(), getLoginMaxAttempts(), getPasswordMaxAge(), getPasswordMaxLength(), getPasswordMinLength(), isAutomaticHTTPSEnabled(), isHTTPSEnabled(), isPasswordChangeOnFirstLoginEnabled(), isPasswordCharsAndNumbersEnabled(), isPasswordSpecialCharsEnabled(), and isPreventionOfSimultaneousLoginsEnabled().

{
$this->settings->set('ps_auto_https_enabled',(bool) $this->isAutomaticHTTPSEnabled());
$this->settings->set('ps_auto_https_headername',(string) $this->getAutomaticHTTPSHeaderName());
$this->settings->set('ps_auto_https_headervalue',(string) $this->getAutomaticHTTPSHeaderValue());
$this->settings->set('https',(string) $this->isHTTPSEnabled());
$this->settings->set('ps_account_security_mode',(int) $this->getAccountSecurityMode());
$this->settings->set('ps_password_chars_and_numbers_enabled',(bool) $this->isPasswordCharsAndNumbersEnabled());
$this->settings->set('ps_password_special_chars_enabled',(bool) $this->isPasswordSpecialCharsEnabled());
$this->settings->set('ps_password_min_length',(int) $this->getPasswordMinLength());
$this->settings->set('ps_password_max_length',(int) $this->getPasswordMaxLength());
$this->settings->set('ps_password_max_age',(int) $this->getPasswordMaxAge());
$this->settings->set('ps_login_max_attempts',(int) $this->getLoginMaxAttempts());
$this->settings->set('ps_password_change_on_first_login_enabled',(bool) $this->isPasswordChangeOnFirstLoginEnabled());
$this->settings->set('ps_prevent_simultaneous_logins', (int)$this->isPreventionOfSimultaneousLoginsEnabled());
/* Change Sn */
$this->settings->set('ps_exam_useragent', (string)$this->getExamUserAgent());
$this->settings->set('ps_exam_role_id', (int)$this->getExamRoleId());
$this->settings->set('ps_exam_skin', (string)$this->getExamSkin());
}

+ Here is the call graph for this function:

ilSecuritySettings::setAccountSecurityMode (   $a_mode)

set the account security mode

Parameters
integer$a_mode

Definition at line 130 of file class.ilSecuritySettings.php.

{
$this->account_security_mode = $a_mode;
}
ilSecuritySettings::setAutomaticHTTPSEnabled (   $varname)

write access to enable automatic https detection

Parameters
boolean$varname

Definition at line 280 of file class.ilSecuritySettings.php.

{
$this->https_header_enable = $varname;
}
ilSecuritySettings::setAutomaticHTTPSHeaderName (   $varname)

set header name for automatic https detection

Parameters
string$varname

Definition at line 290 of file class.ilSecuritySettings.php.

{
$this->https_header_name = $varname;
}
ilSecuritySettings::setAutomaticHTTPSHeaderValue (   $varname)

set header value for automatic https detection

Parameters
string$varname

Definition at line 300 of file class.ilSecuritySettings.php.

{
$this->https_header_value = $varname;
}
ilSecuritySettings::setExamRoleId (   $a_role_id)

set exam role_id

Parameters
integer$a_role_id

Definition at line 585 of file class.ilSecuritySettings.php.

{
$this->exam_role_id = $a_role_id;
}
ilSecuritySettings::setExamSkin (   $a_exam_skin)

set exam skin

Parameters
integer$a_exam_skin

Definition at line 605 of file class.ilSecuritySettings.php.

{
$this->exam_skin = $a_exam_skin;
}
ilSecuritySettings::setExamUserAgent (   $a_useragent)

set secure useragent

Parameters
string$a_useragent

Definition at line 566 of file class.ilSecuritySettings.php.

{
$this->exam_useragent = $a_useragent;
}
ilSecuritySettings::setHTTPSEnabled (   $value)

Enable https for certain scripts.

Parameters
boolean$value

Definition at line 340 of file class.ilSecuritySettings.php.

{
$this->https_enable = $value;
}
ilSecuritySettings::setLoginMaxAttempts (   $a_login_max_attempts)

set the maximum count of login attempts

Parameters
integer$a_login_max_attempts

Definition at line 259 of file class.ilSecuritySettings.php.

{
$this->login_max_attempts = $a_login_max_attempts;
}
ilSecuritySettings::setPasswordChangeOnFirstLoginEnabled (   $a_password_change_on_first_login_enabled)

set if the passwords have to be changed by users on first login

Parameters
boolean$a_password_change_on_first_login_enabled

Definition at line 362 of file class.ilSecuritySettings.php.

{
$this->password_change_on_first_login_enabled = $a_password_change_on_first_login_enabled;
}
ilSecuritySettings::setPasswordCharsAndNumbersEnabled (   $a_chars_and_numbers_enabled)

set if the passwords have to contain characters and numbers

Parameters
boolean$a_chars_and_numbers_enabled

Definition at line 153 of file class.ilSecuritySettings.php.

{
$this->password_chars_and_numbers_enabled = $a_chars_and_numbers_enabled;
}
ilSecuritySettings::setPasswordMaxAge (   $a_password_max_age)

set the maximum password age

Parameters
integer$a_password_max_age

Definition at line 239 of file class.ilSecuritySettings.php.

{
$this->password_max_age = $a_password_max_age;
}
ilSecuritySettings::setPasswordMaxLength (   $a_password_max_length)

set the maximum length for passwords

Parameters
integer$a_password_max_length

Definition at line 219 of file class.ilSecuritySettings.php.

{
$this->password_max_length = $a_password_max_length;
}
ilSecuritySettings::setPasswordMinLength (   $a_password_min_length)

set the minimum length for passwords

Parameters
integer$a_password_min_length

Definition at line 199 of file class.ilSecuritySettings.php.

{
$this->password_min_length = $a_password_min_length;
}
ilSecuritySettings::setPasswordSpecialCharsEnabled (   $a_password_special_chars_enabled)

set if the passwords have to contain special characters

Parameters
boolean$a_password_special_chars_enabled

Definition at line 177 of file class.ilSecuritySettings.php.

{
$this->password_special_chars_enabled = $a_password_special_chars_enabled;
}
ilSecuritySettings::setPreventionOfSimultaneousLogins (   $value)

Enable/Disable prevention of simultaneous logins with the same account.

Parameters
boolean$value

Definition at line 545 of file class.ilSecuritySettings.php.

{
$this->prevent_simultaneous_logins = (bool)$value;
}
ilSecuritySettings::validate ( )

validate settings

Returns
0, if everything is ok, an error code otherwise

Definition at line 455 of file class.ilSecuritySettings.php.

References $password_min_length, $SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE, $SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE, ilHTTPS\_checkHTTP(), ilHTTPS\_checkHTTPS(), getAccountSecurityMode(), getAutomaticHTTPSHeaderName(), getAutomaticHTTPSHeaderValue(), getLoginMaxAttempts(), getPasswordMaxAge(), getPasswordMaxLength(), getPasswordMinLength(), isAutomaticHTTPSEnabled(), isHTTPSEnabled(), isPasswordCharsAndNumbersEnabled(), isPasswordSpecialCharsEnabled(), SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS, SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE, SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH, SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH, SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH, SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2, and SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3.

{
if ($this->isAutomaticHTTPSEnabled() &&
(strlen($this->getAutomaticHTTPSHeaderName()) == 0 ||
strlen($this->getAutomaticHTTPSHeaderValue()) == 0)
)
{
return ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS;
}
include_once './classes/class.ilHTTPS.php';
if ($this->isHTTPSEnabled())
{
{
}
}
{
}
if( $this->getAccountSecurityMode() == self::ACCOUNT_SECURITY_MODE_CUSTOMIZED )
{
if( $this->getPasswordMinLength() < 0 )
{
}
if( $this->getPasswordMaxLength() < 0 )
{
}
{
{
}
}
{
return $password_min_length_error_code;
}
if( $this->getPasswordMaxLength() > 0 && $this->getPasswordMaxLength() < $this->getPasswordMinLength() )
{
}
if( $this->getPasswordMaxAge() < 0 )
{
}
if( $this->getLoginMaxAttempts() < 0 )
{
}
}
/*
* todo: have to check for local auth if first login password change is enabled??
* than: add errorcode
*/
return 0;
}

+ Here is the call graph for this function:

Field Documentation

ilSecuritySettings::$account_security_mode = self::ACCOUNT_SECURITY_MODE_DEFAULT
private

Definition at line 67 of file class.ilSecuritySettings.php.

Referenced by getAccountSecurityMode().

ilSecuritySettings::$db
private

Definition at line 59 of file class.ilSecuritySettings.php.

ilSecuritySettings::$exam_role_id = 0
private

Definition at line 81 of file class.ilSecuritySettings.php.

Referenced by getExamRoleId().

ilSecuritySettings::$exam_skin = ''
private

Definition at line 82 of file class.ilSecuritySettings.php.

Referenced by getExamSkin().

ilSecuritySettings::$exam_useragent = ''
private

Definition at line 80 of file class.ilSecuritySettings.php.

Referenced by getExamUserAgent().

ilSecuritySettings::$https_enable
private

Definition at line 65 of file class.ilSecuritySettings.php.

Referenced by isHTTPSEnabled().

ilSecuritySettings::$https_header_enable
private

Definition at line 62 of file class.ilSecuritySettings.php.

Referenced by isAutomaticHTTPSEnabled().

ilSecuritySettings::$https_header_name
private

Definition at line 63 of file class.ilSecuritySettings.php.

Referenced by getAutomaticHTTPSHeaderName().

ilSecuritySettings::$https_header_value
private

Definition at line 64 of file class.ilSecuritySettings.php.

Referenced by getAutomaticHTTPSHeaderValue().

ilSecuritySettings::$instance = null
staticprivate

Definition at line 58 of file class.ilSecuritySettings.php.

Referenced by _getInstance().

ilSecuritySettings::$login_max_attempts = 0
private

Definition at line 73 of file class.ilSecuritySettings.php.

Referenced by getLoginMaxAttempts().

ilSecuritySettings::$password_change_on_first_login_enabled = false
private

Definition at line 75 of file class.ilSecuritySettings.php.

Referenced by isPasswordChangeOnFirstLoginEnabled().

ilSecuritySettings::$password_chars_and_numbers_enabled = false
private

Definition at line 68 of file class.ilSecuritySettings.php.

Referenced by isPasswordCharsAndNumbersEnabled().

ilSecuritySettings::$password_max_age = 0
private

Definition at line 72 of file class.ilSecuritySettings.php.

Referenced by getPasswordMaxAge().

ilSecuritySettings::$password_max_length = 0
private

Definition at line 71 of file class.ilSecuritySettings.php.

Referenced by getPasswordMaxLength().

ilSecuritySettings::$password_min_length = 0
private

Definition at line 70 of file class.ilSecuritySettings.php.

Referenced by getPasswordMinLength(), and validate().

ilSecuritySettings::$password_special_chars_enabled = false
private

Definition at line 69 of file class.ilSecuritySettings.php.

Referenced by isPasswordSpecialCharsEnabled().

ilSecuritySettings::$prevent_simultaneous_logins = false
private
ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS = 1
static

Definition at line 36 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct().

ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE = 2
static

Definition at line 37 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE = 3
static

Definition at line 38 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

ilSecuritySettings::$settings
private

Definition at line 60 of file class.ilSecuritySettings.php.

const ilSecuritySettings::ACCOUNT_SECURITY_MODE_CUSTOMIZED = 2
const ilSecuritySettings::ACCOUNT_SECURITY_MODE_DEFAULT = 1

Definition at line 49 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\showSecurity().

const ilSecuritySettings::DEFAULT_EXAM_ROLE_ID = 4

Definition at line 54 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_EXAM_SKIN = 'naviless'

Definition at line 55 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_EXAM_USERAGENT = ''

Definition at line 53 of file class.ilSecuritySettings.php.

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS = 7

Definition at line 43 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE = 6

Definition at line 42 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH = 5

Definition at line 41 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH = 4

Definition at line 40 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH = 10

Definition at line 46 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 = 8

Definition at line 44 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 = 9

Definition at line 45 of file class.ilSecuritySettings.php.

Referenced by ilObjPrivacySecurityGUI\__construct(), and validate().


The documentation for this class was generated from the following file: