|
ContentBox Core API 1.5.7 | ||||
FRAMES |
WEB-INF.cftags.componentcontentbox.model.security.SecurityService
public class SecurityService
******************************************************************************* ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.gocontentbox.org | www.luismajano.com | 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
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 |
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 Returns [error, author] |
ISecurityService |
sendPasswordReminder(Author author)
Send password reminder email |
ISecurityService |
setAuthorSession(Author author)
Set a new author in session |
ISecurityService |
setRememberMe(any username)
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 WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
public boolean authenticate(any username, any password)
authenticate
in interface
ISecurityService
username
password
public boolean authorizeContent(any content, any password)
authorizeContent
in interface
ISecurityService
content
password
private any decryptIt(any decValue)
decValue
private any encryptIt(any encValue)
encValue
public Author getAuthorSession()
getAuthorSession
in interface
ISecurityService
private any getContentProtectedHash([any content])
content
private any getEncryptionKey()
public any getRememberMe()
public boolean isContentViewable(any content)
isContentViewable
in interface
ISecurityService
content
public ISecurityService logout()
logout
in interface
ISecurityService
public struct resetUserPassword(any token)
token
public ISecurityService sendPasswordReminder(Author author)
sendPasswordReminder
in interface
ISecurityService
author
public ISecurityService setAuthorSession(Author author)
setAuthorSession
in interface
ISecurityService
author
public ISecurityService setRememberMe(any username)
username
public ISecurityService updateAuthorLoginTimestamp([any author])
author
public boolean userValidator(struct rule, [any messagebox], [any controller])
userValidator
in interface
ISecurityService
rule
messagebox
controller
|
ContentBox Core API 1.5.7 | ||||
FRAMES |