套件 | 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, 03:47 PM Z