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