Class
SignatureValidator
lucee.Component
twilio-sdk.SignatureValidator
Class Attributes:
synchronized
: false
accessors
: true
persistent
: false
Property Summary
|
type
|
property
|
default
|
serializable
|
required
|
any
|
authToken
The configured account auth token.
- access = public
- returntype = any
- inject = coldbox:setting:authToken@twilio-sdk
|
|
true
|
false
|
Method Summary
|
string
|
getAuthToken()
|
private any
|
hmacSha1([any string])
|
any
|
setAuthToken(any authToken)
|
any
|
validate([any expectedSignature], [any uri], [any params='[runtime expression]'])
Validate a request against an expected signature.
|
Methods inherited from class lucee.Component
|
None
|
authToken
property any
authToken
The configured account auth token.
This can be overridden for subaccounts.
- Attributes:
access
- public
required
- false
returntype
- any
inject
- coldbox:setting:authToken@twilio-sdk
serializable
- true
getAuthToken
public string getAuthToken()
hmacSha1
private any hmacSha1([any string])
- Parameters:
string
setAuthToken
public any setAuthToken(any authToken)
- Parameters:
authToken
validate
public any validate([any expectedSignature], [any uri], [any params='[runtime expression]'])
Validate a request against an expected signature.
The expected signature should typically come from the X-Twilio-Signature header.
- Parameters:
expectedSignature
- The expected signature to compare.
uri
- The full url of the request
params
- A struct of form params, if any.