Class Security
Implements a basic security model
- Object
-
ViewableData
implements
IteratorAggregate
-
RequestHandler
-
Controller
-
Security
Methods summary
public static
|
|
public static
|
|
public static
|
#
set_default_message_set( string|array $messageSet )
Set the default message set used in permissions failures. |
public static
|
#
permissionFailure(
Register that we've had a permission failure trying to view the given page |
protected
|
|
protected
array
|
|
public static
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
#
passwordsent(
Show the "password sent" page, after a user has requested to reset their password. |
public static
|
|
public
string
|
|
public
|
|
public
|
|
public static
boolean|
|
#
authenticate( mixed $RAW_email, mixed $RAW_password )
Authenticate using the given email and password, returning the appropriate member object if |
public static
|
#
findAnAdministrator( )
Return an existing member with administrator privileges, or create one of necessary. |
public static
|
|
public static
boolean
|
#
check_default_admin( string $username, string $password )
Checks if the passed credentials are matching the default-admin. Compares cleartext-password set through Security::setDefaultAdmin(). |
public static
|
|
public static
|
|
public static
|
|
public static
boolean
|
|
public static
|
|
public static
array
|
#
get_encryption_algorithms( )
Get a list of all available encryption algorithms. Note: These are arbitrary codes, and not callable methods. |
public static
boolean
|
|
public static
String
|
|
public static
mixed
|
#
encrypt_password( string $password, string $salt = null, string $algorithm = null,
Encrypt a password according to the current password encryption settings. If the settings are so that passwords shouldn't be encrypted, the result is simple the clear text password with an empty salt except when a custom algorithm ($algorithm parameter) was passed. |
public static
boolean
|
#
database_is_ready( )
Checks the database is in a state to perform security checks. See DatabaseAdmin->init() for more information. |
public static
|
#
set_login_recording( boolean $bool )
Enable or disable recording of login attempts through the LoginRecord object. |
public static
boolean
|
|
public static
|
#
set_default_login_dest( mixed $dest )
Set the default login dest This is the URL that users will be redirected to after they log in, if they haven't logged in en route to access a secured page. |
public static
|
Methods inherited from Controller
CurrentMember(),
Now(),
PastMember(),
PastVisitor(),
can(),
curr(),
defaultAction(),
disableBasicAuth(),
getAction(),
getFormOwner(),
getRequest(),
getResponse(),
getSession(),
getURLParams(),
getViewer(),
handleAction(),
handleRequest(),
hasAction(),
hasActionTemplate(),
has_curr(),
init(),
isAjax(),
join_links(),
popCurrent(),
pushCurrent(),
redirect(),
redirectBack(),
redirectedTo(),
render(),
setSession(),
setURLParams()
Methods inherited from RequestHandler
__construct(),
allowedActions(),
checkAccessAction(),
httpError()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
hasValue(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
exists(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
protected static
string
|
$default_username |
#
Default user name. Only used in dev-mode by |
protected static
string
|
$default_password |
#
Default password. Only used in dev-mode by |
protected static
boolean
|
$strictPathChecking |
#
If set to TRUE to prevent sharing of the session across several sites in the domain. |
protected static
boolean
|
$encryptPasswords |
#
Should passwords be stored encrypted? |
protected static
string
|
$encryptionAlgorithm |
#
The password encryption algorithm to use by default. This is an arbitrary
code registered through |
protected static
boolean
|
$useSalt |
#
Should a salt be used for the password encryption? |
public static
boolean
|
$autologin_enabled |
#
Showing "Remember me"-checkbox on loginform, and saving encrypted credentials to a cookie. |
protected static
string
|
$wordlist |
#
Location of word list to use for generating passwords |
public static
string
|
$template_main |
#
Template thats used to render the pages. |
protected static
array|string
|
$default_message_set |
#
Default message set used in permission failures. |
protected static
boolean
|
$login_recording |
#
Enable or disable recording of login attempts through the LoginRecord object. |
protected static
string
|
$default_login_dest |
Properties inherited from Controller
$action,
$allowed_actions,
$baseInitCalled,
$basicAuthEnabled,
$controller_stack,
$request,
$requestParams,
$response,
$session,
$urlParams,
$url_handlers
Properties inherited from RequestHandler
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems