openfl
Version:
A fast, productive library for 2D cross-platform development.
60 lines (42 loc) • 1.45 kB
JavaScript
// Class: openfl.security.X500DistinguishedName
var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this
$global.Object.defineProperty(exports, "__esModule", {value: true});
var __map_reserved = {};
// Imports
var $hxClasses = require("./../../hxClasses_stub").default;
var $hxEnums = require("./../../hxEnums_stub").default;
// Constructor
var X500DistinguishedName = function() {
}
// Meta
X500DistinguishedName.__name__ = "openfl.security.X500DistinguishedName";
X500DistinguishedName.__isInterface__ = false;
X500DistinguishedName.prototype = {
toString: function() {
var result = "";
if(this.commonName != null) {
result += "/CN=" + this.commonName;
}
if(this.countryName != null) {
result += "/C=" + this.countryName;
}
if(this.localityName != null) {
result += "/L=" + this.localityName;
}
if(this.organizationalUnitName != null) {
result += "/OU=" + this.organizationalUnitName;
}
if(this.organizationName != null) {
result += "/O=" + this.organizationName;
}
if(this.stateOrProvinceName != null) {
result += "/S=" + this.stateOrProvinceName;
}
return result;
}
};
X500DistinguishedName.prototype.__class__ = X500DistinguishedName.prototype.constructor = $hxClasses["openfl.security.X500DistinguishedName"] = X500DistinguishedName;
// Init
// Statics
// Export
exports.default = X500DistinguishedName;