ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
flash.security 

X500DistinguishedName  - AS3

Packageflash.security
Classpublic class X500DistinguishedName
InheritanceX500DistinguishedName Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

The X500DistinguishedName class defines Distinguished Name (DN) properties for use in the X509Certificate class. The Distinguished Name protocol is specified in RFC1779.

This class is useful for any code that needs to examine a server certificate's Subject and Issuer DN after a secure socket connection has been established. Subject and Issuer DN data is accessible in the X509Certificate class's subject and issuer properties. These properties are populated with X500DistinguishedName objects after SecureSocket.connect() establishes a connection with the server.

This class stores DN attributes as string properties. You can use the toString() method to get all of the individual DN properties in one string. Properties with no DN value are set to null.

Note: The X500DistinguishedName properties store only the first occurrence of each DN attribute, although the DN protocol allows for multiple attributes of the same type.

Related API Elements



Public Properties
 PropertyDefined By
  commonName : String
[read-only] Returns the DN CommonName attribute.
X500DistinguishedName
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  countryName : String
[read-only] Returns the DN CountryName attribute.
X500DistinguishedName
  localityName : String
[read-only] Returns the DN LocalityName attribute.
X500DistinguishedName
  organizationalUnitName : String
[read-only] Returns the DN OrganizationalUnitName attribute.
X500DistinguishedName
  organizationName : String
[read-only] Returns the DN OrganizationName attribute.
X500DistinguishedName
  stateOrProvinceName : String
[read-only] Returns the DN StateOrProvinceName attribute.
X500DistinguishedName
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
  
Returns all DN properties in one string.
X500DistinguishedName
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

commonName

property
commonName:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns the DN CommonName attribute.



Implementation
    public function get commonName():String

countryName

property 
countryName:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns the DN CountryName attribute.



Implementation
    public function get countryName():String

localityName

property 
localityName:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns the DN LocalityName attribute.



Implementation
    public function get localityName():String

organizationalUnitName

property 
organizationalUnitName:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns the DN OrganizationalUnitName attribute.



Implementation
    public function get organizationalUnitName():String

organizationName

property 
organizationName:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns the DN OrganizationName attribute.



Implementation
    public function get organizationName():String

stateOrProvinceName

property 
stateOrProvinceName:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns the DN StateOrProvinceName attribute.



Implementation
    public function get stateOrProvinceName():String
Method Detail

toString

()method
public function toString():String

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11, AIR 3

Returns all DN properties in one string.

Returns
String