Guide de référence ActionScript® 3.0 pour la plate-forme Adobe® Flash®
Accueil  |  Masquer la liste des packages et des classes |  Packages  |  Classes  |  Nouveautés  |  Index  |  Annexes  |  Pourquoi existe-t-il du contenu en anglais ?
Filtres : Récupération des données du serveur...
Récupération des données du serveur...
com.adobe.livecycle.ria.security.service 

SecurityManager  - AS3 ADEP Security

Packagecom.adobe.livecycle.ria.security.service
Classepublic class SecurityManager
HéritageSecurityManager Inheritance EventDispatcher Inheritance Object
Implémente ISecurityManager

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

The SecurityManager class provides methods to perform user authentication and also provides access to current user instance.



Propriétés publiques
 PropriétéDéfini par
  channelSet : ChannelSet
[écriture seule] The channelset to use to communicate with the Experience Server.
SecurityManager
 Inheritedconstructor : Object
Référence à l’objet de classe ou à la fonction constructeur d’une occurrence donnée d’un objet.
Object
  currentUser : IUser
[lecture seule] Current logged in user instance.
SecurityManager
Méthodes publiques
 MéthodeDéfini par
  
Constructor.
SecurityManager
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Enregistre un objet écouteur d’événement auprès d’un objet EventDispatcher afin que l’écouteur soit averti d’un événement.
EventDispatcher
  
Configures the ISecurityManager instance with the provided configuration information.
SecurityManager
 Inherited
Distribue un événement dans le flux d’événements.
EventDispatcher
  
[statique] Specifies a factory method to create an instance of ISecurityManager object.
SecurityManager
  
Returns a ticket for the current user.
SecurityManager
 Inherited
Vérifie si des écouteurs sont enregistrés auprès de l’objet EventDispatcher pour un type spécifique d’événement.
EventDispatcher
 Inherited
Indique si la propriété spécifiée d’un objet est définie.
Object
 Inherited
Indique si une occurrence de la classe Object figure dans la chaîne de prototype de l’objet spécifié en tant que paramètre.
Object
  
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
 Inherited
Indique si la propriété spécifiée existe et est énumérable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Supprime un écouteur de l’objet EventDispatcher.
EventDispatcher
 Inherited
Définit la disponibilité d’une propriété dynamique pour les opérations en boucle.
Object
 Inherited
Renvoie la représentation de chaîne de cet objet, formatée selon les paramètres régionaux en vigueur.
Object
 Inherited
Renvoie la représentation sous forme de chaîne de l’objet spécifié.
Object
 Inherited
Renvoie la valeur primitive de l’objet spécifié.
Object
 Inherited
Vérifie si un écouteur d’événement est enregistré auprès de cet objet EventDispatcher ou de ses ancêtres pour le type d’événement spécifié.
EventDispatcher
Evénements
 Evénement Synthèse Défini par
 Inherited[Evénement de diffusion] Distribué lorsque l’application Flash Player obtient le focus du système d’exploitation et devient active.EventDispatcher
 Inherited[Evénement de diffusion] Distribué lorsque l’application Flash Player ou AIR perd le focus du système d’exploitation et devient inactive.EventDispatcher
Constantes publiques
 ConstanteDéfini par
  SEC_PREFIX : String = "com.adobe.livecycle.ria.security."
[statique] A special value that indicates that attributes which begin with this constant are not be sent to server
SecurityManager
Détails de la propriété

channelSet

propriété
channelSet:ChannelSet  [écriture seule]

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

The channelset to use to communicate with the Experience Server.



Implémentation
    public function set channelSet(value:ChannelSet):void

currentUser

propriété 
currentUser:IUser  [lecture seule]

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Current logged in user instance. The value is never a null value.



Implémentation
    public function get currentUser():IUser
Détails du constructeur

SecurityManager

()Constructeur
public function SecurityManager()

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Constructor.

Détails de la méthode

configure

()méthode
public function configure(config:SecurityConfig):void

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Configures the ISecurityManager instance with the provided configuration information.

Paramètres

config:SecurityConfig — Specifies the initial configuration for the SecurityManager service.

getInstance

()méthode 
public static function getInstance(config:SecurityConfig = null):SecurityManager

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Specifies a factory method to create an instance of ISecurityManager object.

Paramètres

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.

Valeur renvoyée
SecurityManager — A SecurityManager instance constructed from the given configuration.

Exemple  ( Comment utiliser cet exemple )
To create a SecurityManager instance:
         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éthode 
public function getTicket():com.adobe.gravity.utility.async:IToken

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: 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.

Valeur renvoyée
com.adobe.gravity.utility.async:IToken — If the call is successful then an instance of ITicket would be passed to the result handler.

login

()méthode 
public function login(username:String, password:String, options:AuthOptions = null):com.adobe.gravity.utility.async:IToken

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: 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.

Paramètres

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.

Valeur renvoyée
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éthode 
public function logout():com.adobe.gravity.utility.async:IToken

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Logs out the current user.

Valeur renvoyée
com.adobe.gravity.utility.async:IToken — If the call is successful then an instance of IAuthResult would be passed to the result handler.

performSSO

()méthode 
public function performSSO(options:AuthOptions = null):com.adobe.gravity.utility.async:IToken

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: AIR 2.6, Flash Player 10.2

Initiates the call to perform Authentication for the current user.

Paramètres

options:AuthOptions (default = null) — (Optional) Specifies an AuthOption instance to control how the authentication is performed.

Valeur renvoyée
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.
Détails de la constante

SEC_PREFIX

Constante
public static const SEC_PREFIX:String = "com.adobe.livecycle.ria.security."

Version du langage: ActionScript 3.0
Version du produit: Adobe Digital Enterprise Platform Experience Services - Security 10
Versions du moteur d’exécution: 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





[ X ]Pourquoi existe-t-il du contenu en anglais ?
Certaines parties du Guide de référence ActionScript 3.0 sont en anglais

Tout le contenu du Guide de référence ActionScript 3.0 n’a pas été traduit dans toutes les langues. Si un élément de langage n’est pas traduit, il s’affiche en anglais. Par exemple, la classe ga.controls.HelpBox n’est traduite dans aucune langue. Ainsi, dans la version française du guide de référence, la classe ga.controls.HelpBox apparaît en anglais.