패키지 | com.adobe.livecycle.ria.security.api |
인터페이스 | public interface ISecurityManager extends IEventDispatcher |
구현자 | SecurityManager |
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
런타임 버전: | AIR 2.6, Flash Player 10.2 |
ISecurityManager
interface provides methods to perform user authentication. The class also provides access to the current
user instance.
속성 | 정의 주체 | ||
---|---|---|---|
currentUser : IUser [읽기 전용]
Current logged in user instance. | ISecurityManager |
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
Configures the ISecurityManager instance with the provided configuration information. | ISecurityManager | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
Returns a ticket for the current user. | ISecurityManager | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
login(username:String, password:String, options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
Perform authentication with the provided username and password. | ISecurityManager | ||
Logs out the current user. | ISecurityManager | ||
Initiates the call to perform Authentication for the current user. | ISecurityManager | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
이벤트 | 요약 | 정의 주체 | ||
---|---|---|---|---|
The event is dispatched after the authentication process has completed successfully. | ISecurityManager | |||
The event is dispatched when authentication is required. | ISecurityManager | |||
The event is dispatched when an authentication attempt fails. | ISecurityManager | |||
The event is dispatched after a user has been logged out. | ISecurityManager |
currentUser | 속성 |
currentUser:IUser
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
런타임 버전: | AIR 2.6, Flash Player 10.2 |
Current logged in user instance. The value is never a null
value.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange
이벤트를 전달합니다.
구현
public function get currentUser():IUser
configure | () | 메서드 |
public function configure(securityConfig: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.
매개 변수
securityConfig:SecurityConfig — Specifies the initial configuration for the SecurityManager service.
|
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.
|
관련 API 요소
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.
|
관련 API 요소
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.
|
COMPLETE | 이벤트 |
com.adobe.livecycle.ria.security.api.AuthenticationEvent
속성 AuthenticationEvent.type =
com.adobe.livecycle.ria.security.api.AuthenticationEvent.AUTHENTICATION_SUCCESS
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
런타임 버전: | AIR 2.6, Flash Player 10.2 |
The event is dispatched after the authentication process has completed successfully.
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.CREDENTIAL_CHALLENGE | 이벤트 |
com.adobe.livecycle.ria.security.api.AuthenticationEvent
속성 AuthenticationEvent.type =
com.adobe.livecycle.ria.security.api.AuthenticationEvent.AUTHENTICATION_REQUIRED
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
런타임 버전: | AIR 2.6, Flash Player 10.2 |
The event is dispatched when authentication is required. Authentication is required when an application starts and then detects that user identity is not known and the user has to authenticate.
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.FAILED | 이벤트 |
com.adobe.livecycle.ria.security.api.AuthenticationEvent
속성 AuthenticationEvent.type =
com.adobe.livecycle.ria.security.api.AuthenticationEvent.AUTHENTICATION_FAILED
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
런타임 버전: | AIR 2.6, Flash Player 10.2 |
The event is dispatched when an authentication attempt fails.
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.LOGGED_OUT | 이벤트 |
com.adobe.livecycle.ria.security.api.AuthenticationEvent
속성 AuthenticationEvent.type =
com.adobe.livecycle.ria.security.api.AuthenticationEvent.LOGOUT_COMPLETE
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
런타임 버전: | AIR 2.6, Flash Player 10.2 |
The event is dispatched after a user has been logged out.
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, 03:17 PM Z