models

Class Sv2Util

lucee.Component
    extended by models.Sv2Util

Amazon Web Services Signature 4 Utility for ColdFusion

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
          Creates a new instance of the utility for generating signatures using the supplied settings.
    Method Summary
    private binary HMAC_SHA1(string signKey, string signMessage)
         NSA SHA-1 Algorithm: RFC 2104HMAC-SHA1.
    struct generateSignatureData(string requestMethod, string hostName, string requestURI, any requestBody, struct requestHeaders, struct requestParams, string accessKey, string secretKey, string regionName, string serviceName, [boolean signedPayload='true'], [array excludeHeaders='[runtime expression]'], [string amzDate], [string dateStamp])
         Generates a version 2 signature and returns headers for the request.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Creates a new instance of the utility for generating signatures using the supplied settings


    Method Detail

    HMAC_SHA1

    private binary HMAC_SHA1(string signKey, string signMessage)

    NSA SHA-1 Algorithm: RFC 2104HMAC-SHA1

    Parameters:
    signKey
    signMessage

    generateSignatureData

    public struct generateSignatureData(string requestMethod, string hostName, string requestURI, any requestBody, struct requestHeaders, struct requestParams, string accessKey, string secretKey, string regionName, string serviceName, [boolean signedPayload='true'], [array excludeHeaders='[runtime expression]'], [string amzDate], [string dateStamp])

    Generates a version 2 signature and returns headers for the request

    Parameters:
    requestMethod - - Request operation, ie PUT, GET, POST, etcetera.
    hostName
    requestURI - - Absolute path of the URI. Portion of the URL after the host, to the "?" beginning the query string
    requestBody
    requestHeaders - - Structure of http headers for used the request.
    requestParams - - Structure containing any url parameters for the request.
    accessKey
    secretKey
    regionName
    serviceName
    signedPayload
    excludeHeaders
    amzDate
    dateStamp