railo-context.Componentcontentbox.model.security.SecurityService
ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Our contentbox security service
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
authorService
|
true
|
false
|
|
any
|
cache
|
true
|
false
|
|
any
|
CBHelper
|
true
|
false
|
|
any
|
cookieStorage
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
mailService
|
true
|
false
|
|
any
|
renderer
|
true
|
false
|
|
any
|
sessionStorage
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
boolean
|
authenticate(any username, any password)
Verify if an author is valid. |
boolean
|
authorizeContent(any content, any password)
Check to authorize a user to view a content entry or page. |
private any
|
decryptIt(any decValue)
|
private any
|
encryptIt(any encValue)
|
Author
|
getAuthorSession()
Get an author from session, or returns a new empty author entity. |
private any
|
getContentProtectedHash([any content])
Get password content protected salt. |
private any
|
getEncryptionKey()
|
any
|
getKeepMeLoggedIn()
Get remember me cookie. |
any
|
getRememberMe()
Get remember me cookie. |
boolean
|
isContentViewable(any content)
Checks Whether a content entry or page is protected and user has credentials for it. |
ISecurityService
|
logout()
Delete author session. |
struct
|
resetUserPassword(any token)
Resets a user's password if the passed in token is valid. |
ISecurityService
|
sendPasswordReminder(Author author)
Send password reminder email. |
ISecurityService
|
setAuthorSession(Author author)
Set a new author in session. |
ISecurityService
|
setRememberMe(any username, numeric days='0')
Set remember me cookie. |
ISecurityService
|
updateAuthorLoginTimestamp([any author])
Update an author's last login timestamp. |
boolean
|
userValidator(struct rule, [any messagebox], [any controller])
User validator via security interceptor. |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
required
- falseinject
- id:authorService@cbserializable
- truerequired
- falseinject
- cachebox:defaultserializable
- truerequired
- falseinject
- id:CBHelper@cbserializable
- truerequired
- falseinject
- coldbox:plugin:CookieStorageserializable
- truerequired
- falseinject
- logbox:logger:{this}serializable
- truerequired
- falseinject
- coldbox:plugin:MailServiceserializable
- truerequired
- falseinject
- provider:ColdBoxRendererserializable
- truerequired
- falseinject
- coldbox:plugin:SessionStorageserializable
- truerequired
- falseinject
- id:settingService@cbserializable
- trueMethod Detail |
---|
Verify if an author is valid
authenticate
in interface
ISecurityService
username
password
Check to authorize a user to view a content entry or page
authorizeContent
in interface
ISecurityService
content
password
decValue
encValue
Get an author from session, or returns a new empty author entity
getAuthorSession
in interface
ISecurityService
Get password content protected salt
content
Get remember me cookie
Get remember me cookie
Checks Whether a content entry or page is protected and user has credentials for it
isContentViewable
in interface
ISecurityService
content
Delete author session
logout
in interface
ISecurityService
Resets a user's password if the passed in token is valid Returns [error, author]
token
Send password reminder email
sendPasswordReminder
in interface
ISecurityService
author
Set a new author in session
setAuthorSession
in interface
ISecurityService
author
Set remember me cookie
username
days
Update an author's last login timestamp
author
User validator via security interceptor
userValidator
in interface
ISecurityService
rule
messagebox
controller