包 | com.adobe.livecycle.ria.security.api |
类 | public class AuthenticationEvent |
继承 | AuthenticationEvent Event Object |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
AuthenticationEvent
objects are dispatched by the ISecurityManager
class when an authentication
related operation is performed.
属性 | 由以下参数定义 | ||
---|---|---|---|
authResult : IAuthResult [只读]
The authentication result associated with the event. | AuthenticationEvent | ||
bubbles : Boolean [只读]
表示事件是否为冒泡事件。 | Event | ||
cancelable : Boolean [只读]
表示是否可以阻止与事件相关联的行为。 | Event | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
currentTarget : Object [只读]
当前正在使用某个事件侦听器处理 Event 对象的对象。 | Event | ||
eventPhase : uint [只读]
事件流中的当前阶段。 | Event | ||
target : Object [只读]
事件目标。 | Event | ||
type : String [只读]
事件的类型。 | Event |
方法 | 由以下参数定义 | ||
---|---|---|---|
AuthenticationEvent(type:String, authResult:IAuthResult = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor. | AuthenticationEvent | ||
复制 Event 子类的实例。 | Event | ||
用于在自定义 ActionScript 3.0 Event 类中实现 toString() 方法的实用程序函数。 | Event | ||
表示对象是否已经定义了指定的属性。 | Object | ||
检查是否已对事件调用 preventDefault() 方法。 | Event | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
如果可以取消事件的默认行为,则取消该行为。 | Event | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
设置循环操作动态属性的可用性。 | Object | ||
防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。 | Event | ||
防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。 | Event | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回一个字符串,其中包含 Event 对象的所有属性。 | Event | ||
返回指定对象的原始值。 | Object |
常量 | 由以下参数定义 | ||
---|---|---|---|
AUTHENTICATION_FAILED : String = "FAILED" [静态]
A special value that indicates the type of event that is dispatched when authentication fails using the username and password. | AuthenticationEvent | ||
AUTHENTICATION_REQUIRED : String = "CREDENTIAL_CHALLENGE" [静态]
A special value that indicates the type of event that is dispatched when authentication using single sign-on (SSO) fails. | AuthenticationEvent | ||
AUTHENTICATION_SUCCESS : String = "COMPLETE" [静态]
A special value that indicates that the authentication process was successful. | AuthenticationEvent | ||
LOGOUT_COMPLETE : String = "LOGGED_OUT" [静态]
A special value that indicates the type of event that is dispatched a user logs off. | AuthenticationEvent |
authResult | 属性 |
authResult:IAuthResult
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The authentication result associated with the event. Depending on the event type, it can provide more details.
实现
public function get authResult():IAuthResult
AuthenticationEvent | () | 构造函数 |
public function AuthenticationEvent(type:String, authResult:IAuthResult = null, bubbles:Boolean = false, cancelable:Boolean = false)
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Constructor.
Creates a new AuthenticationEvent
object. The appropriate dynamic properties are created depending on the
event type specified.
type:String — Specifies the event type.
| |
authResult:IAuthResult (default = null ) — Specifies the IAuthResult data related to the event.
| |
bubbles:Boolean (default = false ) — Specifies whether the event object participates in the bubbling stage of the event flow.
| |
cancelable:Boolean (default = false ) — Specifies whether the event object can be canceled.
|
AUTHENTICATION_FAILED | 常量 |
public static const AUTHENTICATION_FAILED:String = "FAILED"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
A special value that indicates the type of event that is dispatched when authentication fails using the username and password. As a response to this type of event, an application can show an error message to the user. This event would only happen when authentication is done using username and password and NOT in single sign-on scenario.
AUTHENTICATION_REQUIRED | 常量 |
public static const AUTHENTICATION_REQUIRED:String = "CREDENTIAL_CHALLENGE"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
A special value that indicates the type of event that is dispatched when authentication using single sign-on (SSO) fails. When SSO fails, the user's username and password is required for authentication. As a response to this event, an application can display the login page to the user.
AUTHENTICATION_SUCCESS | 常量 |
public static const AUTHENTICATION_SUCCESS:String = "COMPLETE"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
A special value that indicates that the authentication process was successful. Authentication can be completed using single sign-on (SSO) or a username and password. As a response to this event the application can show the welcome page to the user. An application can validate for permissions and roles to further verify the user is allowed access. As a response to this event, an application would do complete the validation and then display the welcome page.
LOGOUT_COMPLETE | 常量 |
public static const LOGOUT_COMPLETE:String = "LOGGED_OUT"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
A special value that indicates the type of event that is dispatched a user logs off. As a response to this event, an application can display the logout page. The logout page can inform the user that he has been logged out. Alternatively, an application can display the login page to the user.
Tue Jun 12 2018, 11:04 AM Z