createVerifier

Type: function
Create a verifier to be used with Oauth1Helper.verify(signer,req,...). Algorithm should be one of HmacMD5, HmacSHA1, HmacSHA256, HmacSHA384, HmacSHA512. Settings should be a Map[String,String] (use toKVMap for simplicity), which contains any of the following keys: algorithmName (usually "HMAC-SHA1") version (usually "1.0") realm dropPort ("true" or "false", defaults to "true") overridePort (only useful when you've got some complicated port routing which might be encoded into the signature incorrectly) encoding (defaults to "ISO-8859-1", but you might need to change this for some servers who need "UTF-8" or something else) oauthPrefix (defaults to "Oauth", but some servers might require "OAuth" or some variation of casing) Output order is a List[String], so use newList([string1,string2]) to ensure it's correctly passed in. This is usually not necessary to override, but some servers might require specific ordering of the elements in the header. This does not change the order that the params are used inside the calculation of the signature.

Body

function(algorithm,settings,overrideOutputOrder){...}

Classpath

Children