Pacotemx.core
Classepublic class CrossDomainRSLItem
HerançaCrossDomainRSLItem Inheritance RSLItem Inheritance Object

Cross-domain RSL Item Classe. The rsls are typically located on a different host than the loader. There are signed and unsigned Rsls, both have a digest to confirm the correct rsl is loaded. Signed Rsls are loaded by setting the digest of the URLRequest. Unsigned Rsls are check using actionScript to calculate a sha-256 hash of the loaded bytes and compare them to the expected digest.



Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Propriedades Protegidas
 PropriedadeDefinido por
 InheritedchainedCompleteHandler : Function
RSLItem
 InheritedchainedIOErrorHandler : Function
RSLItem
 InheritedchainedRSLErrorHandler : Function
RSLItem
 InheritedchainedSecurityErrorHandler : Function
RSLItem
Métodos Públicos
 MétodoDefinido por
  
CrossDomainRSLItem(rslUrls:Array, policyFileUrls:Array, digests:Array, hashTypes:Array, isSigned:Array)
Create a cross-domain RSL item to load.
CrossDomainRSLItem
  
Does the current url being processed have a failover?
CrossDomainRSLItem
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
load(progressHandler:Function, completeHandler:Function, ioErrorHandler:Function, securityErrorHandler:Function, rslErrorHandler:Function):void
Load an RSL.
CrossDomainRSLItem
  
Load the next url from the list of failover urls.
CrossDomainRSLItem
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes do construtor
CrossDomainRSLItem()Construtor
public function CrossDomainRSLItem(rslUrls:Array, policyFileUrls:Array, digests:Array, hashTypes:Array, isSigned:Array)

Create a cross-domain RSL item to load.

Parâmetros
rslUrls:Array — Array of Strings, may not be null. Each String is the url of an RSL to load.
 
policyFileUrls:Array — Array of Strings, may not be null. Each String contains the url of an policy file which may be required to allow the RSL to be read from another domain. An empty string means there is no policy file specified.
 
digests:Array — Array of Strings, may not be null. A String contains the value of the digest computed by the hash in the corresponding entry in the hashTypes Array. An empty string may be provided for unsigned RSLs to loaded them without verifying the digest. This is provided as a development cycle convenience and should not be used in a production application.
 
hashTypes:Array — Array of Strings, may not be null. Each String identifies the type of hash used to compute the digest. Currently the only valid value is SHA256.TYPE_ID.
 
isSigned:Array — Array of boolean, may not be null. Each boolean value specifies if the RSL to be loaded is a signed or unsigned RSL. If the value is true the RSL is signed. If the value is false the RSL is unsigned.
Detalhes do método
hasFailover()método
public function hasFailover():Boolean

Does the current url being processed have a failover?

Retorna
Boolean — true if a failover url exists, false otherwise.
load()método 
public override function load(progressHandler:Function, completeHandler:Function, ioErrorHandler:Function, securityErrorHandler:Function, rslErrorHandler:Function):void

Load an RSL.

Parâmetros

progressHandler:Function — receives ProgressEvent.PROGRESS events, may be null
 
completeHandler:Function — receives Event.COMPLETE events, may be null
 
ioErrorHandler:Function — receives IOErrorEvent.IO_ERROR events, may be null
 
securityErrorHandler:Function — receives SecurityErrorEvent.SECURITY_ERROR events, may be null
 
rslErrorHandler:Function — receives RSLEvent.RSL_ERROR events, may be null

loadFailover()método 
public function loadFailover():void

Load the next url from the list of failover urls.