Pakket | com.adobe.livecycle.ria.security.service |
Klasse | public class SecurityManager |
Overerving | SecurityManager EventDispatcher Object |
Implementatie | ISecurityManager |
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
SecurityManager
class provides methods to perform user authentication and also provides access to current
user instance.
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
channelSet : ChannelSet [alleen-schrijven]
The channelset to use to communicate with the Experience Server. | SecurityManager | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
currentUser : IUser [alleen-lezen]
Current logged in user instance. | SecurityManager |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructor. | SecurityManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | EventDispatcher | ||
Configures the ISecurityManager instance with the provided configuration information. | SecurityManager | ||
Verzendt een gebeurtenis naar de gebeurtenisstroom. | EventDispatcher | ||
[statisch]
Specifies a factory method to create an instance of ISecurityManager object. | SecurityManager | ||
Returns a ticket for the current user. | SecurityManager | ||
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | 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 | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object | ||
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher |
Constante | Gedefinieerd door | ||
---|---|---|---|
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 | eigenschap |
channelSet:ChannelSet
[alleen-schrijven] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The channelset to use to communicate with the Experience Server.
Implementatie
public function set channelSet(value:ChannelSet):void
currentUser | eigenschap |
currentUser:IUser
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Current logged in user instance. The value is never a null
value.
Implementatie
public function get currentUser():IUser
SecurityManager | () | Constructor |
public function SecurityManager()
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Constructor.
configure | () | methode |
public function configure(config:SecurityConfig):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Configures the ISecurityManager
instance with the provided configuration information.
Parameters
config:SecurityConfig — Specifies the initial configuration for the SecurityManager service.
|
getInstance | () | methode |
public static function getInstance(config:SecurityConfig = null):SecurityManager
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Specifies a factory method to create an instance of ISecurityManager
object.
Parameters
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.
|
Voorbeeld ( Hoe dit voorbeeld te gebruiken )
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
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | 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.
Geretourneerde waardecom.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
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | 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
.
Parameters
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
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Logs out the current user.
Geretourneerde waardecom.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
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Initiates the call to perform Authentication for the current user.
Parameters
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."
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
Runtimeversies: | 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
Wed Jun 13 2018, 11:42 AM Z