import { Certificate } from "./cert"; /** * Enumeration specifies Java MIDP */ export declare enum JavaMIDP { Unspecified = 0, Manufacturer = 1, Operator = 2, ThirdParty = 3 } /** * X.509 certificate objects (certificate type `CKC_X_509`) hold X.509 public key certificates */ export declare class X509Certificate extends Certificate { /** * DER-encoding of the certificate subject name * - Must be specified when the object is created. * - Must be non-empty if `CKA_URL` is empty. */ subject: Buffer; /** * Key identifier for public/private key pair (default empty) */ id: Buffer; /** * DER-encoding of the certificate issuer name (default empty) */ issuer: Buffer; /** * HEX-encoding of the certificate serial number (default empty) */ get serialNumber(): string; /** * HEX-encoding of the certificate serial number (default empty) */ set serialNumber(v: string); /** * BER-encoding of the certificate * - Must be specified when the object is created. * - Must be non-empty if `CKA_URL` is empty. */ value: Buffer; /** * If not empty this attribute gives the URL where the complete certificate * can be obtained (default empty) * - Must be non-empty if `CKA_VALUE` is empty */ url: string; /** * SHA-1 hash of the subject public key (default empty) * - Can only be empty if `CKA_URL` is empty. */ subjectKeyIdentifier: Buffer; /** * SHA-1 hash of the issuer public key (default empty) * - Can only be empty if `CKA_URL` is empty. */ authorityKeyIdentifier: Buffer; /** * Java MIDP security domain */ java: JavaMIDP; }