Свойство | Type | Description | |
---|---|---|---|
$canon | string | Canonisation method. | |
$debugHeaders | boolean | Must we embed signed headers? | |
$domainKeyHeader | Swift_Mime_Headers_ParameterizedHeader | Stores the signature header. | |
$domainName | string | DomainName. | |
$hashAlgorithm | string | Hash algorithm used. | |
$ignoredHeaders | array | Headers not being signed. | |
$privateKey | string | PrivateKey. | |
$selector | string | Selector. | |
$signerIdentity | string | Signer identity. |
Méthode | Description | |
---|---|---|
__construct ( string $privateKey, string $domainName, string $selector ) | Constructor. | |
addSignature ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DomainKeySigner | Add the signature to the given Headers. | |
bind ( Swift_InputByteStream $is ) : Swift_Signers_DomainKeySigner | Attach $is to this stream. | |
commit ( ) : Swift_Signers_DomainKeySigner | For any bytes that are currently buffered inside the stream, force them off the buffer. | |
endBody ( ) | End Body. | |
flushBuffers ( ) : Swift_Signers_DomainKeySigner | Flush the contents of the stream (empty it) and set the internal pointer to the beginning. | |
getAlteredHeaders ( ) : array | Returns the list of Headers Tampered by this plugin. | |
ignoreHeader ( string $header_name ) : Swift_Signers_DomainKeySigner | Adds an ignored Header. | |
reset ( ) : Swift_Signers_DomainKeySigner | Resets internal states. | |
setCanon ( string $canon ) : Swift_Signers_DomainKeySigner | Set the canonicalization algorithm. | |
setDebugHeaders ( boolean $debug ) : Swift_Signers_DomainKeySigner | Enable / disable the DebugHeaders. | |
setHashAlgorithm ( string $hash ) : Swift_Signers_DomainKeySigner | Set hash_algorithm, must be one of rsa-sha256 | rsa-sha1 defaults to rsa-sha256. | |
setHeaders ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DomainKeySigner | Set the headers to sign. | |
setSignerIdentity ( string $identity ) : Swift_Signers_DomainKeySigner | Set the signer identity. | |
startBody ( ) | Start Body. | |
unbind ( Swift_InputByteStream $is ) : Swift_Signers_DomainKeySigner | Remove an already bound stream. | |
write ( string $bytes ) : Swift_Signers_DomainKeySigner | Writes $bytes to the end of the stream. |
Méthode | Description | |
---|---|---|
addHeader ( $header ) | * Private helpers | |
canonicalizeBody ( $string ) | ||
endOfBody ( ) | ||
endOfHeaders ( ) |
Méthode | Description | |
---|---|---|
addToHash ( $string ) | ||
getEncryptedHash ( ) : string | ||
startHash ( ) |
public addSignature ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DomainKeySigner | ||
$headers | Swift_Mime_HeaderSet | |
Résultat | Swift_Signers_DomainKeySigner |
public bind ( Swift_InputByteStream $is ) : Swift_Signers_DomainKeySigner | ||
$is | Swift_InputByteStream | |
Résultat | Swift_Signers_DomainKeySigner |
public commit ( ) : Swift_Signers_DomainKeySigner | ||
Résultat | Swift_Signers_DomainKeySigner |
public flushBuffers ( ) : Swift_Signers_DomainKeySigner | ||
Résultat | Swift_Signers_DomainKeySigner |
public getAlteredHeaders ( ) : array | ||
Résultat | array |
public ignoreHeader ( string $header_name ) : Swift_Signers_DomainKeySigner | ||
$header_name | string | |
Résultat | Swift_Signers_DomainKeySigner |
public reset ( ) : Swift_Signers_DomainKeySigner | ||
Résultat | Swift_Signers_DomainKeySigner |
public setDebugHeaders ( boolean $debug ) : Swift_Signers_DomainKeySigner | ||
$debug | boolean | |
Résultat | Swift_Signers_DomainKeySigner |
public setHashAlgorithm ( string $hash ) : Swift_Signers_DomainKeySigner | ||
$hash | string | |
Résultat | Swift_Signers_DomainKeySigner |
public setHeaders ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DomainKeySigner | ||
$headers | Swift_Mime_HeaderSet | |
Résultat | Swift_Signers_DomainKeySigner |
public setSignerIdentity ( string $identity ) : Swift_Signers_DomainKeySigner | ||
$identity | string | |
Résultat | Swift_Signers_DomainKeySigner |
public unbind ( Swift_InputByteStream $is ) : Swift_Signers_DomainKeySigner | ||
$is | Swift_InputByteStream | |
Résultat | Swift_Signers_DomainKeySigner |
protected bool $debugHeaders | ||
Résultat | boolean |
protected Swift_Mime_Headers_ParameterizedHeader $domainKeyHeader | ||
Résultat | Swift_Mime_Headers_ParameterizedHeader |
protected string $hashAlgorithm | ||
Résultat | string |
protected array $ignoredHeaders | ||
Résultat | array |
protected string $signerIdentity | ||
Résultat | string |