TYPO3
7.6
|
Public Member Functions | |
__construct ($privateKey, $domainName, $selector) | |
reset () | |
write ($bytes) | |
commit () | |
bind (Swift_InputByteStream $is) | |
unbind (Swift_InputByteStream $is) | |
flushBuffers () | |
setHashAlgorithm ($hash) | |
setBodyCanon ($canon) | |
setHeaderCanon ($canon) | |
setSignerIdentity ($identity) | |
setBodySignedLen ($len) | |
setSignatureTimestamp ($time) | |
setSignatureExpiration ($time) | |
setDebugHeaders ($debug) | |
startBody () | |
endBody () | |
getAlteredHeaders () | |
ignoreHeader ($header_name) | |
setHeaders (Swift_Mime_HeaderSet $headers) | |
addSignature (Swift_Mime_HeaderSet $headers) | |
Static Public Member Functions | |
static | newInstance ($privateKey, $domainName, $selector) |
Protected Member Functions | |
_addHeader ($header, $is_sig=false) | |
_endOfHeaders () | |
_canonicalizeBody ($string) | |
_endOfBody () | |
Protected Attributes | |
$_privateKey | |
$_domainName | |
$_selector | |
$_hashAlgorithm = 'rsa-sha1' | |
$_bodyCanon = 'simple' | |
$_headerCanon = 'simple' | |
$_ignoredHeaders = array() | |
$_signerIdentity | |
$_bodyLen = 0 | |
$_maxLen = PHP_INT_MAX | |
$_showLen = false | |
$_signatureTimestamp = true | |
$_signatureExpiration = false | |
$_debugHeaders = false | |
$_signedHeaders = array() | |
$_dkimHeader | |
Private Member Functions | |
_addToBodyHash ($string) | |
_addToHeaderHash ($header) | |
_getEncryptedHash () | |
Private Attributes | |
$_debugHeadersData = '' | |
$_bodyHash = '' | |
$_headerHashHandler | |
$_bodyHashHandler | |
$_headerHash | |
$_headerCanonData = '' | |
$_bodyCanonEmptyCounter = 0 | |
$_bodyCanonIgnoreStart = 2 | |
$_bodyCanonSpace = false | |
$_bodyCanonLastChar = null | |
$_bodyCanonLine = '' | |
$_bound = array() | |
DKIM Signer used to apply DKIM Signature to a message.
Definition at line 16 of file DKIMSigner.php.
__construct | ( | $privateKey, | |
$domainName, | |||
$selector | |||
) |
Constructor.
string | $privateKey | |
string | $domainName | |
string | $selector |
Definition at line 178 of file DKIMSigner.php.
|
protected |
Definition at line 575 of file DKIMSigner.php.
References _addToHeaderHash().
Referenced by addSignature(), and setHeaders().
|
private |
Definition at line 658 of file DKIMSigner.php.
Referenced by _canonicalizeBody(), and _endOfBody().
|
private |
Definition at line 669 of file DKIMSigner.php.
Referenced by _addHeader().
|
protected |
Definition at line 596 of file DKIMSigner.php.
References $_bodyCanonEmptyCounter, $_bodyCanonIgnoreStart, and _addToBodyHash().
Referenced by write().
|
protected |
Definition at line 649 of file DKIMSigner.php.
References _addToBodyHash().
Referenced by endBody().
|
protected |
Definition at line 591 of file DKIMSigner.php.
Referenced by addSignature().
|
private |
Swift_SwiftException |
Definition at line 682 of file DKIMSigner.php.
Referenced by addSignature().
addSignature | ( | Swift_Mime_HeaderSet | $headers | ) |
Add the signature to the given Headers.
Swift_Mime_HeaderSet | $headers |
Implements Swift_Signers_HeaderSigner.
Definition at line 526 of file DKIMSigner.php.
References $_bodyCanon, $_bodyLen, $_headerCanon, $_signatureExpiration, $_signatureTimestamp, _addHeader(), _endOfHeaders(), _getEncryptedHash(), Swift_Mime_HeaderSet\addTextHeader(), elseif, and Swift_Mime_HeaderSet\getAll().
bind | ( | Swift_InputByteStream | $is | ) |
Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All write() and flushBuffers() operations will be mirrored.
Swift_InputByteStream | $is |
Implements Swift_InputByteStream.
Definition at line 261 of file DKIMSigner.php.
commit | ( | ) |
For any bytes that are currently buffered inside the stream, force them off the buffer.
Swift_IoException |
Implements Swift_InputByteStream.
Definition at line 248 of file DKIMSigner.php.
endBody | ( | ) |
End Body.
Implements Swift_Signers_HeaderSigner.
Definition at line 456 of file DKIMSigner.php.
References _endOfBody().
flushBuffers | ( | ) |
Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
Swift_IoException |
Implements Swift_InputByteStream.
Definition at line 297 of file DKIMSigner.php.
References reset().
getAlteredHeaders | ( | ) |
Returns the list of Headers Tampered by this plugin.
Implements Swift_Signers_HeaderSigner.
Definition at line 466 of file DKIMSigner.php.
ignoreHeader | ( | $header_name | ) |
Adds an ignored Header.
string | $header_name |
Implements Swift_Signers_HeaderSigner.
Definition at line 482 of file DKIMSigner.php.
|
static |
Instanciate DKIMSigner.
string | $privateKey | |
string | $domainName | |
string | $selector |
Definition at line 195 of file DKIMSigner.php.
reset | ( | ) |
Reset the Signer.
Implements Swift_Signer.
Definition at line 205 of file DKIMSigner.php.
Referenced by flushBuffers().
setBodyCanon | ( | $canon | ) |
Set the body canonicalization algorithm.
string | $canon |
Definition at line 328 of file DKIMSigner.php.
setBodySignedLen | ( | $len | ) |
Set the length of the body to sign.
mixed | $len | (bool or int) |
Definition at line 378 of file DKIMSigner.php.
References elseif.
setDebugHeaders | ( | $debug | ) |
Enable / disable the DebugHeaders.
bool | $debug |
Definition at line 429 of file DKIMSigner.php.
setHashAlgorithm | ( | $hash | ) |
Set hash_algorithm, must be one of rsa-sha256 | rsa-sha1 defaults to rsa-sha256.
string | $hash |
Definition at line 309 of file DKIMSigner.php.
setHeaderCanon | ( | $canon | ) |
Set the header canonicalization algorithm.
string | $canon |
Definition at line 346 of file DKIMSigner.php.
setHeaders | ( | Swift_Mime_HeaderSet | $headers | ) |
Set the headers to sign.
Swift_Mime_HeaderSet | $headers |
Implements Swift_Signers_HeaderSigner.
Definition at line 496 of file DKIMSigner.php.
References _addHeader(), Swift_Mime_HeaderSet\getAll(), Swift_Mime_HeaderSet\has(), and Swift_Mime_HeaderSet\listAll().
setSignatureExpiration | ( | $time | ) |
Set the signature expiration timestamp.
timestamp | $time |
Definition at line 415 of file DKIMSigner.php.
setSignatureTimestamp | ( | $time | ) |
Set the signature timestamp.
timestamp | $time |
Definition at line 401 of file DKIMSigner.php.
setSignerIdentity | ( | $identity | ) |
Set the signer identity.
string | $identity |
Definition at line 364 of file DKIMSigner.php.
startBody | ( | ) |
unbind | ( | Swift_InputByteStream | $is | ) |
Remove an already bound stream. If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.
Swift_InputByteStream | $is |
Implements Swift_InputByteStream.
Definition at line 277 of file DKIMSigner.php.
write | ( | $bytes | ) |
Writes $bytes to the end of the stream.
Writing may not happen immediately if the stream chooses to buffer. If you want to write these bytes with immediate effect, call commit() after calling write().
This method returns the sequence ID of the write (i.e. 1 for first, 2 for second, etc etc).
string | $bytes |
Swift_IoException |
Implements Swift_InputByteStream.
Definition at line 234 of file DKIMSigner.php.
References _canonicalizeBody().
|
protected |
Definition at line 51 of file DKIMSigner.php.
Referenced by addSignature().
|
private |
Definition at line 159 of file DKIMSigner.php.
Referenced by _canonicalizeBody().
|
private |
Definition at line 161 of file DKIMSigner.php.
Referenced by _canonicalizeBody().
|
private |
Definition at line 165 of file DKIMSigner.php.
|
private |
Definition at line 167 of file DKIMSigner.php.
|
private |
Definition at line 163 of file DKIMSigner.php.
|
private |
Definition at line 137 of file DKIMSigner.php.
|
private |
Definition at line 153 of file DKIMSigner.php.
|
protected |
Definition at line 79 of file DKIMSigner.php.
Referenced by addSignature(), and Swift_Signers_OpenDKIMSigner\setHeaders().
|
private |
Definition at line 169 of file DKIMSigner.php.
|
protected |
Definition at line 115 of file DKIMSigner.php.
|
private |
Definition at line 130 of file DKIMSigner.php.
|
protected |
Definition at line 144 of file DKIMSigner.php.
|
protected |
Definition at line 30 of file DKIMSigner.php.
|
protected |
Definition at line 44 of file DKIMSigner.php.
|
protected |
Definition at line 58 of file DKIMSigner.php.
Referenced by addSignature().
|
private |
Definition at line 157 of file DKIMSigner.php.
|
private |
Definition at line 155 of file DKIMSigner.php.
|
private |
Definition at line 151 of file DKIMSigner.php.
|
protected |
Definition at line 65 of file DKIMSigner.php.
|
protected |
Definition at line 86 of file DKIMSigner.php.
|
protected |
Definition at line 23 of file DKIMSigner.php.
|
protected |
Definition at line 37 of file DKIMSigner.php.
|
protected |
Definition at line 93 of file DKIMSigner.php.
|
protected |
Definition at line 108 of file DKIMSigner.php.
Referenced by addSignature().
|
protected |
Definition at line 100 of file DKIMSigner.php.
Referenced by addSignature().
|
protected |
Definition at line 123 of file DKIMSigner.php.
|
protected |
Definition at line 72 of file DKIMSigner.php.