import { ASObject } from "../../avm2/nat"; import { release, notImplemented } from "../../base/utilities/Debug"; import { ByteArray } from "../../avm2/natives/byteArray"; import { ASDate } from "../../avm2/natives/date"; import { X500DistinguishedName } from "./X500DistinguishedName"; /** * Copyright 2014 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Class: X509Certificate export class X509Certificate extends ASObject { // Called whenever the class is initialized. static classInitializer: any = null; // List of static symbols to link. static classSymbols: string [] = null; // []; // List of instance symbols to link. static instanceSymbols: string [] = null; // []; constructor () { super(); } // _version: number /*uint*/; // _serialNumber: string; // _signatureAlgorithmOID: string; // _signatureAlgorithmParams: flash.utils.ByteArray; // _issuer: flash.security.X500DistinguishedName; // _validNotBefore: ASDate; // _validNotAfter: ASDate; // _subject: flash.security.X500DistinguishedName; // _subjectPublicKeyAlgorithmOID: string; // _subjectPublicKey: string; // _issuerUniqueID: string; // _subjectUniqueID: string; // _encoded: flash.utils.ByteArray; get version(): number /*uint*/ { release || notImplemented("public flash.security.X509Certificate::get version"); return; // return this._version; } get serialNumber(): string { release || notImplemented("public flash.security.X509Certificate::get serialNumber"); return; // return this._serialNumber; } get signatureAlgorithmOID(): string { release || notImplemented("public flash.security.X509Certificate::get signatureAlgorithmOID"); return; // return this._signatureAlgorithmOID; } get signatureAlgorithmParams(): ByteArray { release || notImplemented("public flash.security.X509Certificate::get signatureAlgorithmParams"); return; // return this._signatureAlgorithmParams; } get issuer(): X500DistinguishedName { release || notImplemented("public flash.security.X509Certificate::get issuer"); return; // return this._issuer; } get validNotBefore(): ASDate { release || notImplemented("public flash.security.X509Certificate::get validNotBefore"); return; // return this._validNotBefore; } get validNotAfter(): ASDate { release || notImplemented("public flash.security.X509Certificate::get validNotAfter"); return; // return this._validNotAfter; } get subject(): X500DistinguishedName { release || notImplemented("public flash.security.X509Certificate::get subject"); return; // return this._subject; } get subjectPublicKeyAlgorithmOID(): string { release || notImplemented("public flash.security.X509Certificate::get subjectPublicKeyAlgorithmOID"); return; // return this._subjectPublicKeyAlgorithmOID; } get subjectPublicKey(): string { release || notImplemented("public flash.security.X509Certificate::get subjectPublicKey"); return; // return this._subjectPublicKey; } get issuerUniqueID(): string { release || notImplemented("public flash.security.X509Certificate::get issuerUniqueID"); return; // return this._issuerUniqueID; } get subjectUniqueID(): string { release || notImplemented("public flash.security.X509Certificate::get subjectUniqueID"); return; // return this._subjectUniqueID; } get encoded(): ByteArray { release || notImplemented("public flash.security.X509Certificate::get encoded"); return; // return this._encoded; } }