1 | // Copyright 2015 Joyent, Inc.
|
---|
2 |
|
---|
3 | var Key = require('./key');
|
---|
4 | var Fingerprint = require('./fingerprint');
|
---|
5 | var Signature = require('./signature');
|
---|
6 | var PrivateKey = require('./private-key');
|
---|
7 | var Certificate = require('./certificate');
|
---|
8 | var Identity = require('./identity');
|
---|
9 | var errs = require('./errors');
|
---|
10 |
|
---|
11 | module.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 | identityFromArray: Identity.fromArray,
|
---|
32 |
|
---|
33 | /* errors */
|
---|
34 | FingerprintFormatError: errs.FingerprintFormatError,
|
---|
35 | InvalidAlgorithmError: errs.InvalidAlgorithmError,
|
---|
36 | KeyParseError: errs.KeyParseError,
|
---|
37 | SignatureParseError: errs.SignatureParseError,
|
---|
38 | KeyEncryptedError: errs.KeyEncryptedError,
|
---|
39 | CertificateParseError: errs.CertificateParseError
|
---|
40 | };
|
---|