Paquete | com.adobe.livecycle.ria.security.service |
Clase | public class SecurityManager |
Herencia | SecurityManager EventDispatcher Object |
Implementa | ISecurityManager |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
SecurityManager
class provides methods to perform user authentication and also provides access to current
user instance.
Propiedad | Definido por | ||
---|---|---|---|
channelSet : ChannelSet [solo escritura]
The channelset to use to communicate with the Experience Server. | SecurityManager | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
currentUser : IUser [solo lectura]
Current logged in user instance. | SecurityManager |
Método | Definido por | ||
---|---|---|---|
Constructor. | SecurityManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
Configures the ISecurityManager instance with the provided configuration information. | SecurityManager | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
[estática]
Specifies a factory method to create an instance of ISecurityManager object. | SecurityManager | ||
Returns a ticket for the current user. | SecurityManager | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | 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 | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Constante | Definido por | ||
---|---|---|---|
SEC_PREFIX : String = "com.adobe.livecycle.ria.security." [estática]
A special value that indicates that attributes which begin with this constant are not be sent to server
| SecurityManager |
channelSet | propiedad |
channelSet:ChannelSet
[solo escritura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
The channelset to use to communicate with the Experience Server.
Implementación
public function set channelSet(value:ChannelSet):void
currentUser | propiedad |
currentUser:IUser
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
Current logged in user instance. The value is never a null
value.
Implementación
public function get currentUser():IUser
SecurityManager | () | Información sobre |
public function SecurityManager()
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
Constructor.
configure | () | método |
public function configure(config:SecurityConfig):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
Configures the ISecurityManager
instance with the provided configuration information.
Parámetros
config:SecurityConfig — Specifies the initial configuration for the SecurityManager service.
|
getInstance | () | método |
public static function getInstance(config:SecurityConfig = null):SecurityManager
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
Specifies a factory method to create an instance of ISecurityManager
object.
Parámetros
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.
|
Ejemplo ( Cómo utilizar este ejemplo )
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 | () | método |
public function getTicket():com.adobe.gravity.utility.async:IToken
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | 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.
Valor devueltocom.adobe.gravity.utility.async:IToken — If the call is successful then an instance of ITicket would be passed to the result handler.
|
login | () | método |
public function login(username:String, password:String, options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | 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
.
Parámetros
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 | () | método |
public function logout():com.adobe.gravity.utility.async:IToken
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
Logs out the current user.
Valor devueltocom.adobe.gravity.utility.async:IToken — If the call is successful then an instance of IAuthResult would be passed to the result handler.
|
performSSO | () | método |
public function performSSO(options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | AIR 2.6, Flash Player 10.2 |
Initiates the call to perform Authentication for the current user.
Parámetros
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 | Constante |
public static const SEC_PREFIX:String = "com.adobe.livecycle.ria.security."
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Versiones de motor de ejecución: | 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, 02:12 PM Z