Pacchetto | com.adobe.livecycle.ria.security.service |
Classe | public class SecurityManager |
Ereditarietà | SecurityManager EventDispatcher 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 |
SecurityManager
class provides methods to perform user authentication and also provides access to current
user instance.
Proprietà | Definito da | ||
---|---|---|---|
channelSet : ChannelSet [sola scrittura]
The channelset to use to communicate with the Experience Server. | SecurityManager | ||
constructor : 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 |
Metodo | Definito da | ||
---|---|---|---|
Constructor. | SecurityManager | ||
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 | ||
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 | ||
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | EventDispatcher | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | 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 se la proprietà specificata esiste ed è enumerabile. | Object | ||
Rimuove un listener dall'oggetto EventDispatcher. | EventDispatcher | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object | ||
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | EventDispatcher |
Costante | Definito 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 |
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
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.
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.
|
SecurityManager — A SecurityManager instance constructed from the given configuration.
|
Esempio ( Come utilizzare questo esempio )
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.
Restituiscecom.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.
|
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.
Restituiscecom.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.
|
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 | 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
Tue Jun 12 2018, 02:44 PM Z