Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
com.adobe.livecycle.ria.security.service 

SecurityManager  - AS3 ADEP - Sicurezza

Pacchettocom.adobe.livecycle.ria.security.service
Classepublic class SecurityManager
EreditarietàSecurityManager Inheritance EventDispatcher Inheritance Object
Implementa ISecurityManager

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

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



Proprietà pubbliche
 ProprietàDefinito da
  channelSet : ChannelSet
[sola scrittura] The channelset to use to communicate with the Experience Server.
SecurityManager
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
  currentUser : IUser
[sola lettura] Current logged in user instance.
SecurityManager
Metodi pubblici
 MetodoDefinito da
  
Constructor.
SecurityManager
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento.
EventDispatcher
  
Configures the ISecurityManager instance with the provided configuration information.
SecurityManager
 Inherited
Invia un evento nel flusso di eventi.
EventDispatcher
  
[statico] Specifies a factory method to create an instance of ISecurityManager object.
SecurityManager
  
Returns a ticket for the current user.
SecurityManager
 Inherited
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento.
EventDispatcher
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
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
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Rimuove un listener dall'oggetto EventDispatcher.
EventDispatcher
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
Restituisce la rappresentazione in formato stringa dell'oggetto specificato.
Object
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
 Inherited
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato.
EventDispatcher
Eventi
 Evento Riepilogo Definito da
 Inherited[evento di trasmissione] Inviato quando Flash Player o l'applicazione AIR ottiene lo stato di attivazione del sistema operativo ed entra nello stato attivo.EventDispatcher
 Inherited[evento di trasmissione] Inviato quando Flash Player o l'applicazione AIR perde l'attivazione del sistema operativo e sta entrando nello stato inattivo.EventDispatcher
Costanti pubbliche
 CostanteDefinito da
  SEC_PREFIX : String = "com.adobe.livecycle.ria.security."
[statico] A special value that indicates that attributes which begin with this constant are not be sent to server
SecurityManager
Descrizione delle proprietà

channelSet

proprietà
channelSet:ChannelSet  [sola scrittura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

The channelset to use to communicate with the Experience Server.



Implementazione
    public function set channelSet(value:ChannelSet):void

currentUser

proprietà 
currentUser:IUser  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

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



Implementazione
    public function get currentUser():IUser
Descrizione della funzione di costruzione

SecurityManager

()Funzione di costruzione
public function SecurityManager()

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

Constructor.

Descrizione dei metodi

configure

()metodo
public function configure(config:SecurityConfig):void

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

Configures the ISecurityManager instance with the provided configuration information.

Parametri

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

getInstance

()metodo 
public static function getInstance(config:SecurityConfig = null):SecurityManager

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

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

Parametri

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.

Restituisce
SecurityManager — A SecurityManager instance constructed from the given configuration.

Esempio  ( Come utilizzare questo esempio )
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

()metodo 
public function getTicket():com.adobe.gravity.utility.async:IToken

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: 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.

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

login

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

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: 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.

Parametri

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.

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

logout

()metodo 
public function logout():com.adobe.gravity.utility.async:IToken

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

Logs out the current user.

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

performSSO

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

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: AIR 2.6, Flash Player 10.2

Initiates the call to perform Authentication for the current user.

Parametri

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

Restituisce
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.
Descrizione delle costanti

SEC_PREFIX

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

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Experience Services - Sicurezza 10
Versioni runtime: 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 ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.