Pacoteflash.security
Classepublic class XMLSignatureValidator
HerançaXMLSignatureValidator Inheritance EventDispatcher Inheritance Object

The XMLSignatureValidator lets validate XML signatures.



Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  digestStatus : String
[read-only] Returns the validity of the cryptographic signature computed over the SignedInfo element.
XMLSignatureValidator
  identityStatus : String
[read-only] Returns the validity of the signer's certificate.
XMLSignatureValidator
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  referencesStatus : String
[read-only] Returns the validity of the digest of all the references in the SignedInfo element.
XMLSignatureValidator
  revocationCheckSetting : String
XMLSignatureValidator
  signerCN : String
[read-only]
XMLSignatureValidator
  signerDN : String
[read-only]
XMLSignatureValidator
  signerExtendedKeyUsages : Array
[read-only]
XMLSignatureValidator
  signerTrustSettings : Array
[read-only]
XMLSignatureValidator
  uriDereferencer : URIDereferencer
Sets the URIDereferencer to use during validation (required).
XMLSignatureValidator
  useSystemTrustStore : Boolean
Whether to use certificates in the system trust store for chain building (optional).
XMLSignatureValidator
  validityStatus : String
[read-only] Returns XML signature's validity, as "valid", "invalid", or "unknown".
XMLSignatureValidator
Métodos Públicos
 MétodoDefinido por
  
XMLSignatureValidator
  
Adds an x509 certificate for chain building (optional).
XMLSignatureValidator
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 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
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 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
  
verify(signature:XML):void
Verifies the specified signature.
XMLSignatureValidator
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Eventos
 Evento Descrição Definido por
 Inherited Dispatched when Flash Player or the and AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited Dispatched when Flash Player loses operating system focus and is becoming inactive.EventDispatcher
Detalhes da propriedade
digestStatuspropriedade
digestStatus:String  [read-only]

Returns the validity of the cryptographic signature computed over the SignedInfo element. This method will return either "valid" or "invalid".


Implementação
    public function get digestStatus():String
identityStatuspropriedade 
identityStatus:String  [read-only]

Returns the validity of the signer's certificate. A certificate is only valid if it has not expired nor been revoked. This method will return either "valid" or "invalid".


Implementação
    public function get identityStatus():String
referencesStatuspropriedade 
referencesStatus:String  [read-only]

Returns the validity of the digest of all the references in the SignedInfo element. This method will return either "valid" or "invalid".


Implementação
    public function get referencesStatus():String
revocationCheckSettingpropriedade 
revocationCheckSetting:String  [read-write]
Implementação
    public function get revocationCheckSetting():String
    public function set revocationCheckSetting(value:String):void
signerCNpropriedade 
signerCN:String  [read-only]
Implementação
    public function get signerCN():String
signerDNpropriedade 
signerDN:String  [read-only]
Implementação
    public function get signerDN():String
signerExtendedKeyUsagespropriedade 
signerExtendedKeyUsages:Array  [read-only]
Implementação
    public function get signerExtendedKeyUsages():Array
signerTrustSettingspropriedade 
signerTrustSettings:Array  [read-only]
Implementação
    public function get signerTrustSettings():Array
uriDereferencerpropriedade 
uriDereferencer:URIDereferencer  [read-write]

Sets the URIDereferencer to use during validation (required).


Implementação
    public function get uriDereferencer():URIDereferencer
    public function set uriDereferencer(value:URIDereferencer):void
useSystemTrustStorepropriedade 
useSystemTrustStore:Boolean  [read-write]

Whether to use certificates in the system trust store for chain building (optional). If the flag parameter is set true, the trusted controls whether the trust anchors in the system trust store should be used as trusted roots. The system trust store is not used by default.


Implementação
    public function get useSystemTrustStore():Boolean
    public function set useSystemTrustStore(value:Boolean):void
validityStatuspropriedade 
validityStatus:String  [read-only]

Returns XML signature's validity, as "valid", "invalid", or "unknown". This is computed by validating the references' digest, the cryptographic signature digest, and the signer's certificate. The validity of each of these elements can be requested individually by the getReferencesStatus(), getDigestStatus(), and getIdentityStatus() methods respectively.

Possible values for the overall status are "valid", "invalid", and "unknown":

ValorCondition
"valid"All three of the above are set to "valid".
"invalid"Any of the three above is set to "invalid".
"unknown"The References and SignedInfo are valid but the Identity status is "unknown".

These methods will throw InvalidStateError exception if they are called before verification is done or while the XMLSignatureValidator object is validating a signature.


Implementação
    public function get validityStatus():String
Detalhes do construtor
XMLSignatureValidator()Construtor
public function XMLSignatureValidator()
Detalhes do método
addCertificate()método
public function addCertificate(cert:ByteArray, trusted:Boolean):*

Adds an x509 certificate for chain building (optional). If the trusted flag is set, the passed-in certificate is considered a trust anchor.

An XML signature may include certificates for building the signer's certificate chain. The XMLSignatureValidator class uses these certificates for chain building (but not as trusted roots) by default.

Parâmetros

cert:ByteArray
 
trusted:Boolean

Retorna
*
verify()método 
public function verify(signature:XML):void

Verifies the specified signature. Verification is then done asynchronously. The XMLSignatureValidator object dispatches a complete event when verification completes successfully or an error event if it encountered any errors. The verification process cannot be cancelled. When a verification process is underway, subsequent calls to the verify() method fail. After the current verification is complete, you can call the verify() method again.

Parâmetros

signature:XML