1// Copyright 2015 Joyent, Inc. 2 3var Key = require('./key'); 4var Fingerprint = require('./fingerprint'); 5var Signature = require('./signature'); 6var PrivateKey = require('./private-key'); 7var Certificate = require('./certificate'); 8var Identity = require('./identity'); 9var errs = require('./errors'); 10 11module.exports = { 12 /* top-level classes */ 13 Key: Key, 14 parseKey: Key.parse, 15 Fingerprint: Fingerprint, 16 parseFingerprint: Fingerprint.parse, 17 Signature: Signature, 18 parseSignature: Signature.parse, 19 PrivateKey: PrivateKey, 20 parsePrivateKey: PrivateKey.parse, 21 generatePrivateKey: PrivateKey.generate, 22 Certificate: Certificate, 23 parseCertificate: Certificate.parse, 24 createSelfSignedCertificate: Certificate.createSelfSigned, 25 createCertificate: Certificate.create, 26 Identity: Identity, 27 identityFromDN: Identity.parseDN, 28 identityForHost: Identity.forHost, 29 identityForUser: Identity.forUser, 30 identityForEmail: Identity.forEmail, 31 32 /* errors */ 33 FingerprintFormatError: errs.FingerprintFormatError, 34 InvalidAlgorithmError: errs.InvalidAlgorithmError, 35 KeyParseError: errs.KeyParseError, 36 SignatureParseError: errs.SignatureParseError, 37 KeyEncryptedError: errs.KeyEncryptedError, 38 CertificateParseError: errs.CertificateParseError 39}; 40