Paket | com.adobe.livecycle.ria.security.service |
Klasse | public class SecurityManager |
Vererbung | SecurityManager EventDispatcher Object |
Implementiert | ISecurityManager |
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
SecurityManager
class provides methods to perform user authentication and also provides access to current
user instance.
Eigenschaft | Definiert von | ||
---|---|---|---|
channelSet : ChannelSet [Nur Schreiben]
The channelset to use to communicate with the Experience Server. | SecurityManager | ||
constructor : Object
Ein Verweis auf das Klassenobjekt oder die Konstruktorfunktion für eine angegebene Objektinstanz. | Object | ||
currentUser : IUser [schreibgeschützt]
Current logged in user instance. | SecurityManager |
Methode | Definiert von | ||
---|---|---|---|
Constructor. | SecurityManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registriert ein Ereignis-Listener-Objekt bei einem EventDispatcher-Objekt, sodass der Listener über ein Ereignis benachrichtigt wird. | EventDispatcher | ||
Configures the ISecurityManager instance with the provided configuration information. | SecurityManager | ||
Sendet ein Ereignis in den Ereignisablauf. | EventDispatcher | ||
[statisch]
Specifies a factory method to create an instance of ISecurityManager object. | SecurityManager | ||
Returns a ticket for the current user. | SecurityManager | ||
Überprüft, ob das EventDispatcher-Objekt Listener für einen bestimmten Ereignistyp registriert hat. | EventDispatcher | ||
Gibt an, ob für ein Objekt eine bestimmte Eigenschaft definiert wurde. | Object | ||
Gibt an, ob eine Instanz der Object-Klasse in der Prototypkette des Objekts vorhanden ist, das als Parameter angegeben wurde. | 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 | ||
Gibt an, ob die angegebene Eigenschaft vorhanden ist und durchlaufen werden kann. | Object | ||
Entfernt einen Listener aus dem EventDispatcher-Objekt. | EventDispatcher | ||
Legt die Verfügbarkeit einer dynamischen Eigenschaft für Schleifenoperationen fest. | Object | ||
Gibt die Stringdarstellung dieses Objekts zurück, formatiert entsprechend den Konventionen des Gebietsschemas. | Object | ||
Gibt das angegebene Objekt als String zurück. | Object | ||
Gibt den Grundwert des angegebenen Objekts zurück. | Object | ||
Überprüft, ob bei diesem EventDispatcher-Objekt oder bei einem seiner Vorgänger ein Ereignis-Listener für einen bestimmten Ereignistyp registriert ist. | EventDispatcher |
Konstante | Definiert von | ||
---|---|---|---|
SEC_PREFIX : String = "com.adobe.livecycle.ria.security." [statisch]
A special value that indicates that attributes which begin with this constant are not be sent to server
| SecurityManager |
channelSet | Eigenschaft |
channelSet:ChannelSet
[Nur Schreiben] Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
The channelset to use to communicate with the Experience Server.
Implementierung
public function set channelSet(value:ChannelSet):void
currentUser | Eigenschaft |
currentUser:IUser
[schreibgeschützt] Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
Current logged in user instance. The value is never a null
value.
Implementierung
public function get currentUser():IUser
SecurityManager | () | Konstruktor |
public function SecurityManager()
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
Constructor.
configure | () | Methode |
public function configure(config:SecurityConfig):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
Configures the ISecurityManager
instance with the provided configuration information.
Parameter
config:SecurityConfig — Specifies the initial configuration for the SecurityManager service.
|
getInstance | () | Methode |
public static function getInstance(config:SecurityConfig = null):SecurityManager
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
Specifies a factory method to create an instance of ISecurityManager
object.
Parameter
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.
|
Beispiel ( Verwendung dieses Beispiels )
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 | () | Methode |
public function getTicket():com.adobe.gravity.utility.async:IToken
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | 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.
Rückgabewertecom.adobe.gravity.utility.async:IToken — If the call is successful then an instance of ITicket would be passed to the result handler.
|
login | () | Methode |
public function login(username:String, password:String, options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | 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
.
Parameter
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 | () | Methode |
public function logout():com.adobe.gravity.utility.async:IToken
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
Logs out the current user.
Rückgabewertecom.adobe.gravity.utility.async:IToken — If the call is successful then an instance of IAuthResult would be passed to the result handler.
|
performSSO | () | Methode |
public function performSSO(options:AuthOptions = null):com.adobe.gravity.utility.async:IToken
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | AIR 2.6, Flash Player 10.2 |
Initiates the call to perform Authentication for the current user.
Parameter
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 | Konstante |
public static const SEC_PREFIX:String = "com.adobe.livecycle.ria.security."
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Laufzeitversionen: | 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, 10:04 AM Z