| Pacote | flash.security |
| Classe | public class XMLSignatureValidator |
| Herança | XMLSignatureValidator EventDispatcher Object |
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | constructor : 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 | ||
![]() | prototype : 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étodo | Definido por | ||
|---|---|---|---|
| XMLSignatureValidator | |||
|
Adds an x509 certificate for chain building (optional).
| XMLSignatureValidator | ||
![]() |
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 | |
![]() |
Dispatches an event into the event flow.
| EventDispatcher | |
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event.
| EventDispatcher | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Removes a listener from the EventDispatcher object.
| EventDispatcher | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
|
Verifies the specified signature.
| XMLSignatureValidator | ||
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type.
| EventDispatcher | |
| digestStatus | propriedade |
digestStatus:String [read-only]
Returns the validity of the cryptographic signature computed over the SignedInfo element.
This method will return either "valid" or "invalid".
public function get digestStatus():String
| identityStatus | propriedade |
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".
public function get identityStatus():String
| referencesStatus | propriedade |
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".
public function get referencesStatus():String
| revocationCheckSetting | propriedade |
revocationCheckSetting:String [read-write] public function get revocationCheckSetting():String
public function set revocationCheckSetting(value:String):void
| signerCN | propriedade |
| signerDN | propriedade |
| signerExtendedKeyUsages | propriedade |
signerExtendedKeyUsages:Array [read-only] public function get signerExtendedKeyUsages():Array
| signerTrustSettings | propriedade |
| uriDereferencer | propriedade |
uriDereferencer:URIDereferencer [read-write] Sets the URIDereferencer to use during validation (required).
public function get uriDereferencer():URIDereferencer
public function set uriDereferencer(value:URIDereferencer):void
| useSystemTrustStore | propriedade |
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.
public function get useSystemTrustStore():Boolean
public function set useSystemTrustStore(value:Boolean):void
| validityStatus | propriedade |
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":
| Valor | Condition |
|---|---|
"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.
public function get validityStatus():String
| XMLSignatureValidator | () | Construtor |
public function XMLSignatureValidator()
| 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 |
* |
| 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 |