包 | com.adobe.livecycle.ria.security.service |
类 | public class SecurityManager |
继承 | SecurityManager EventDispatcher Object |
实现 | ISecurityManager |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
SecurityManager
class provides methods to perform user authentication and also provides access to current
user instance.
属性 | 由以下参数定义 | ||
---|---|---|---|
channelSet : ChannelSet [只写]
The channelset to use to communicate with the Experience Server. | SecurityManager | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
currentUser : IUser [只读]
Current logged in user instance. | SecurityManager |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | SecurityManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
Configures the ISecurityManager instance with the provided configuration information. | SecurityManager | ||
将事件调度到事件流中。 | EventDispatcher | ||
[静态]
Specifies a factory method to create an instance of ISecurityManager object. | SecurityManager | ||
Returns a ticket for the current user. | SecurityManager | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
login(username:String, password:String, options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
Perform authentication with the provided username and password. | SecurityManager | ||
Logs out the current user. | SecurityManager | ||
Initiates the call to perform Authentication for the current user. | SecurityManager | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
常量 | 由以下参数定义 | ||
---|---|---|---|
SEC_PREFIX : String = "com.adobe.livecycle.ria.security." [静态]
A special value that indicates that attributes which begin with this constant are not be sent to server
| SecurityManager |
channelSet | 属性 |
channelSet:ChannelSet
[只写] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The channelset to use to communicate with the Experience Server.
实现
public function set channelSet(value:ChannelSet):void
currentUser | 属性 |
SecurityManager | () | 构造函数 |
public function SecurityManager()
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Constructor.
configure | () | 方法 |
public function configure(config:SecurityConfig):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Configures the ISecurityManager
instance with the provided configuration information.
参数
config:SecurityConfig — Specifies the initial configuration for the SecurityManager service.
|
getInstance | () | 方法 |
public static function getInstance(config:SecurityConfig = null):SecurityManager
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Specifies a factory method to create an instance of ISecurityManager
object.
参数
config:SecurityConfig (default = null ) — Specifies the security configuration obtained through ConfigUtil object. This is required for initial
construction. Subsequent calls can omit the config value.
|
SecurityManager — A SecurityManager instance constructed from the given configuration.
|
示例 ( 如何使用本示例 )
import com.adobe.utility.logging.DefaultLogger; import com.adobe.utility.logging.Logger; import com.adobe.utility.logging.logging; //Initialize the logger Logger.logging::logger = new DefaultLogger(); var securityConfig:SecurityConfig = ConfigUtil.getDefaultRIASecurityConfig(); var securityManager:SecurityManager = SecurityManager.getInstance(securityConfig);
getTicket | () | 方法 |
public function getTicket():com.adobe.gravity.utility.async:IToken
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Returns a ticket for the current user.
Depending on the server setup the ticket can be of type TicketType.SHORT_TICKET
or
TicketType.PIN
. In any case the ticket value would be suitable for use as part of GET request. This
method should be used to obtain a ticket for performing authentication in case of file uploads.
In case if TicketType is PIN then client might make a remote call to server to initialize the pin or in case of expired pin get a new pin issued.
返回com.adobe.gravity.utility.async:IToken — If the call is successful then an instance of ITicket would be passed to the result handler.
|
login | () | 方法 |
public function login(username:String, password:String, options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Perform authentication with the provided username and password. This method is invoked when the
IAuthResult.status
obtained from the performSSO
property
is a value of AuthStatus.AUTHENTICATION_FAILED
or AuthStatus.AUTHENTICATION_REQUIRED
.
参数
username:String — Specifies the user identifier of the user.
| |
password:String — Specifies password of the user.
| |
options:AuthOptions (default = null ) — (Optional)Specifies attributes to control how authentication is performed.
|
com.adobe.gravity.utility.async:IToken — If the call is successful then an instance of IAuthResult would be passed to the result handler.
|
logout | () | 方法 |
public function logout():com.adobe.gravity.utility.async:IToken
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Logs out the current user.
返回com.adobe.gravity.utility.async:IToken — If the call is successful then an instance of IAuthResult would be passed to the result handler.
|
performSSO | () | 方法 |
public function performSSO(options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Initiates the call to perform Authentication for the current user.
参数
options:AuthOptions (default = null ) — (Optional) Specifies an AuthOption instance to control how the authentication is performed.
|
com.adobe.gravity.utility.async:IToken — A token used to set success and failure handler to be called when the operation is completed. If the
call was successful, then an IAuthResult object is passed to the result handler.
|
SEC_PREFIX | 常量 |
public static const SEC_PREFIX:String = "com.adobe.livecycle.ria.security."
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
A special value that indicates that attributes which begin with this constant are not be sent to server
Tue Jun 12 2018, 11:04 AM Z