Packageflash.security
Classpublic class X509Certificate
InheritanceX509Certificate Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 3

The X509Certificate class represents an X.509 certificate. This class defines X.509 properties specified in RFC2459. After you make a successful call to SecureSocket.connect(), the server's certificate data is stored as an X509Certificate instance in the SecureSocket.serverCertificate property.

Use this class to examine a server certificate after establishing a secure socket connection. The properties in this class provide access to the most used attributes of an X.509 certificate. If you must access other parts of a server certificate (for example, its extensions), the complete certificate is available in the encoded property. The certificate stored in the encoded property is DER-encoded.

See also

SecureSocket class


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  encoded : ByteArray
[read-only] Provides the whole certificate in encoded form.
X509Certificate
  issuer : X500DistinguishedName
[read-only] Provides the issuer's Distinguished Name (DN).
X509Certificate
  issuerUniqueID : String
[read-only] Provides the issuer's unique identifier.
X509Certificate
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  serialNumber : String
[read-only] Provides the serial number of the certificate as a hexadecimal string.
X509Certificate
  signatureAlgorithmOID : String
[read-only] Provides the signature algorithm Object Identifier (OID).
X509Certificate
  signatureAlgorithmParams : ByteArray
[read-only] Provides the signature algorithm's parameters.
X509Certificate
  subject : X500DistinguishedName
[read-only] Provides the subject's Distinguished Name (DN).
X509Certificate
  subjectPublicKey : String
[read-only] Provides the subject's public key.
X509Certificate
  subjectPublicKeyAlgorithmOID : String
[read-only] Provides the algorithm OID for the subject's public key.
X509Certificate
  subjectUniqueID : String
[read-only] Provides the subject's unique identifier.
X509Certificate
  validNotAfter : Date
[read-only] Indicates the date on which the certificate's validity period ends.
X509Certificate
  validNotBefore : Date
[read-only] Indicates the date on which the certificate's validity period begins.
X509Certificate
  version : uint
[read-only] Provides the version number of the certificate format.
X509Certificate
Public Methods
 MethodDefined by
 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
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
encodedproperty
encoded:ByteArray  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the whole certificate in encoded form. Client code can decode this value to process certificate extensions. X.509 certificate extensions are not represented in the other properties in this class. Decoding the encoded property is the only way to access a certificate's extensions.

Implementation
    public function get encoded():ByteArray
issuerproperty 
issuer:X500DistinguishedName  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the issuer's Distinguished Name (DN).

Implementation
    public function get issuer():X500DistinguishedName

See also

issuerUniqueIDproperty 
issuerUniqueID:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the issuer's unique identifier.

Implementation
    public function get issuerUniqueID():String
serialNumberproperty 
serialNumber:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the serial number of the certificate as a hexadecimal string. The issuer assigns this number, and the number is unique within the issuer's list of issued certificates.

Implementation
    public function get serialNumber():String
signatureAlgorithmOIDproperty 
signatureAlgorithmOID:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the signature algorithm Object Identifier (OID).

Implementation
    public function get signatureAlgorithmOID():String
signatureAlgorithmParamsproperty 
signatureAlgorithmParams:ByteArray  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the signature algorithm's parameters. If there are no signature algorithm parameters, this value is set to null.

Implementation
    public function get signatureAlgorithmParams():ByteArray
subjectproperty 
subject:X500DistinguishedName  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the subject's Distinguished Name (DN).

Implementation
    public function get subject():X500DistinguishedName

See also

subjectPublicKeyproperty 
subjectPublicKey:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the subject's public key.

Implementation
    public function get subjectPublicKey():String
subjectPublicKeyAlgorithmOIDproperty 
subjectPublicKeyAlgorithmOID:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the algorithm OID for the subject's public key.

Implementation
    public function get subjectPublicKeyAlgorithmOID():String
subjectUniqueIDproperty 
subjectUniqueID:String  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the subject's unique identifier.

Implementation
    public function get subjectUniqueID():String
validNotAfterproperty 
validNotAfter:Date  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Indicates the date on which the certificate's validity period ends.

Implementation
    public function get validNotAfter():Date
validNotBeforeproperty 
validNotBefore:Date  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Indicates the date on which the certificate's validity period begins.

Implementation
    public function get validNotBefore():Date
versionproperty 
version:uint  [read-only]

Language version: ActionScript 3.0
Runtime version: AIR 3

Provides the version number of the certificate format. This property indicates whether the certificate has extensions, a unique identifier, or only the basic fields.

Implementation
    public function get version():uint