Language version: | ActionScript 3.0 |
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.
encoded:ByteArray
[read-only]
Language version: | ActionScript 3.0 |
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
issuer:X500DistinguishedName
[read-only]
Language version: | ActionScript 3.0 |
Provides the issuer's Distinguished Name (DN).
Implementation
public function get issuer():X500DistinguishedName
See also
issuerUniqueID:String
[read-only]
Language version: | ActionScript 3.0 |
Provides the issuer's unique identifier.
Implementation
public function get issuerUniqueID():String
serialNumber:String
[read-only]
Language version: | ActionScript 3.0 |
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
signatureAlgorithmOID:String
[read-only]
Language version: | ActionScript 3.0 |
Provides the signature algorithm Object Identifier (OID).
Implementation
public function get signatureAlgorithmOID():String
signatureAlgorithmParams:ByteArray
[read-only]
Language version: | ActionScript 3.0 |
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
subject:X500DistinguishedName
[read-only]
Language version: | ActionScript 3.0 |
Provides the subject's Distinguished Name (DN).
Implementation
public function get subject():X500DistinguishedName
See also
subjectPublicKey:String
[read-only]
Language version: | ActionScript 3.0 |
Provides the subject's public key.
Implementation
public function get subjectPublicKey():String
subjectPublicKeyAlgorithmOID:String
[read-only]
Language version: | ActionScript 3.0 |
Provides the algorithm OID for the subject's public key.
Implementation
public function get subjectPublicKeyAlgorithmOID():String
subjectUniqueID:String
[read-only]
Language version: | ActionScript 3.0 |
Provides the subject's unique identifier.
Implementation
public function get subjectUniqueID():String
validNotAfter:Date
[read-only]
Language version: | ActionScript 3.0 |
Indicates the date on which the certificate's validity period ends.
Implementation
public function get validNotAfter():Date
validNotBefore:Date
[read-only]
Language version: | ActionScript 3.0 |
Indicates the date on which the certificate's validity period begins.
Implementation
public function get validNotBefore():Date
version:uint
[read-only]
Language version: | ActionScript 3.0 |
Provides the version number of the certificate format. This property indicates whether the
certificate has extensions, a unique identifier, or only the basic fields.
-
version
= 2: Indicates X.509 Version 3 - Extensions are present
-
version
= 1: Indicates X.509 Version 2 - Extensions are not present, but a unique
identifier is present.
-
version
= null: Indicates X.509 Version 1 - Only the basic certificate fields are present
Implementation
public function get version():uint
© 2004-2022 Adobe Systems Incorporated. All rights reserved.
Wed Sep 28 2022, 6:12 PM GMT+01:00