index.js 626 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2015 Joyent, Inc.
  2. var parser = require('./parser');
  3. var signer = require('./signer');
  4. var verify = require('./verify');
  5. var utils = require('./utils');
  6. ///--- API
  7. module.exports = {
  8. parse: parser.parseRequest,
  9. parseRequest: parser.parseRequest,
  10. sign: signer.signRequest,
  11. signRequest: signer.signRequest,
  12. createSigner: signer.createSigner,
  13. isSigner: signer.isSigner,
  14. sshKeyToPEM: utils.sshKeyToPEM,
  15. sshKeyFingerprint: utils.fingerprint,
  16. pemToRsaSSHKey: utils.pemToRsaSSHKey,
  17. verify: verify.verifySignature,
  18. verifySignature: verify.verifySignature,
  19. verifyHMAC: verify.verifyHMAC
  20. };