Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
net_instaweb::Signature Class Referenceabstract
Inheritance diagram for net_instaweb::Signature:

Public Member Functions

 Signature ()
GoogleString Sign (StringPiece key, StringPiece data) const
virtual int SignatureSizeInChars () const =0
 Returns the string length of the signatures produced by the Sign() method.

Protected Member Functions

virtual GoogleString RawSign (StringPiece key, StringPiece data) const =0
 Computes a binary signature of a given data under key.
virtual int RawSignatureSizeInBytes () const =0
 The number of bytes RawSign will produce.

Constructor & Destructor Documentation

net_instaweb::Signature::Signature ( )

The passed in max_chars will be used to limit the length of Sign() and SignatureSizeInChars().

Member Function Documentation

GoogleString net_instaweb::Signature::Sign ( StringPiece  key,
StringPiece  data 
) const

Computes a web64-encoded signature of data under a given key. Takes a StringPiece for signing key, which is used for a pointer to the key and the length of the signing key, and a StringPiece for the data, which is used for a pointer to the data to sign, and the length of the data.

The documentation for this class was generated from the following file: