index.js 626 B

1234567891011121314151617181920212223242526272829
  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. };