Свойство | Тип | Описание | |
---|---|---|---|
$bodyCanon | string | Body canon method. | |
$bodyLen | integer | BodyLength. | |
$debugHeaders | boolean | Must we embed signed headers? | |
$dkimHeader | Swift_Mime_Headers_ParameterizedHeader | Stores the signature header. | |
$domainName | string | DomainName. | |
$hashAlgorithm | string | Hash algorithm used. | |
$headerCanon | string | Header canon method. | |
$ignoredHeaders | array | Headers not being signed. | |
$maxLen | integer | Maximum signedLen. | |
$privateKey | string | PrivateKey. | |
$selector | string | Selector. | |
$showLen | boolean | Embbed bodyLen in signature. | |
$signatureExpiration | integer | When will the signature expires false means not embedded, if sigTimestamp is auto Expiration is relative, otherwhise it's absolute. | |
$signatureTimestamp | mixed | When the signature has been applied (true means time()), false means not embedded. | |
$signedHeaders | array | Headers used to generate hash. | |
$signerIdentity | string | Signer identity. |
Метод | Описание | |
---|---|---|
__construct ( string $privateKey, string $domainName, string $selector ) | Constructor. | |
addSignature ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DKIMSigner | Add the signature to the given Headers. | |
bind ( Swift_InputByteStream $is ) | Attach $is to this stream. | |
commit ( ) | For any bytes that are currently buffered inside the stream, force them off the buffer. | |
endBody ( ) | End Body. | |
flushBuffers ( ) | 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_DKIMSigner | Adds an ignored Header. | |
reset ( ) | Reset the Signer. | |
setBodyCanon ( string $canon ) : Swift_Signers_DKIMSigner | Set the body canonicalization algorithm. | |
setBodySignedLen ( mixed $len ) : Swift_Signers_DKIMSigner | Set the length of the body to sign. | |
setDebugHeaders ( boolean $debug ) : Swift_Signers_DKIMSigner | Enable / disable the DebugHeaders. | |
setHashAlgorithm ( string $hash ) : Swift_Signers_DKIMSigner | Set hash_algorithm, must be one of rsa-sha256 | rsa-sha1 defaults to rsa-sha256. | |
setHeaderCanon ( string $canon ) : Swift_Signers_DKIMSigner | Set the header canonicalization algorithm. | |
setHeaders ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DKIMSigner | Set the headers to sign. | |
setSignatureExpiration ( integer $time ) : Swift_Signers_DKIMSigner | Set the signature expiration timestamp. | |
setSignatureTimestamp ( integer $time ) : Swift_Signers_DKIMSigner | Set the signature timestamp. | |
setSignerIdentity ( string $identity ) : Swift_Signers_DKIMSigner | Set the signer identity. | |
startBody ( ) | Start Body. | |
unbind ( Swift_InputByteStream $is ) | Remove an already bound stream. | |
write ( string $bytes ) : integer | Writes $bytes to the end of the stream. |
Метод | Описание | |
---|---|---|
addHeader ( $header, $is_sig = false ) | * Private helpers | |
canonicalizeBody ( $string ) | ||
endOfBody ( ) |
Метод | Описание | |
---|---|---|
addToBodyHash ( $string ) | ||
addToHeaderHash ( $header ) | ||
getEncryptedHash ( ) : string |
public addSignature ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DKIMSigner | ||
$headers | Swift_Mime_HeaderSet | |
Результат | Swift_Signers_DKIMSigner |
public bind ( Swift_InputByteStream $is ) | ||
$is | Swift_InputByteStream |
public commit ( ) |
public flushBuffers ( ) |
public getAlteredHeaders ( ) : array | ||
Результат | array |
public ignoreHeader ( string $header_name ) : Swift_Signers_DKIMSigner | ||
$header_name | string | |
Результат | Swift_Signers_DKIMSigner |
public setBodyCanon ( string $canon ) : Swift_Signers_DKIMSigner | ||
$canon | string | |
Результат | Swift_Signers_DKIMSigner |
public setBodySignedLen ( mixed $len ) : Swift_Signers_DKIMSigner | ||
$len | mixed | (bool or int) |
Результат | Swift_Signers_DKIMSigner |
public setDebugHeaders ( boolean $debug ) : Swift_Signers_DKIMSigner | ||
$debug | boolean | |
Результат | Swift_Signers_DKIMSigner |
public setHashAlgorithm ( string $hash ) : Swift_Signers_DKIMSigner | ||
$hash | string | |
Результат | Swift_Signers_DKIMSigner |
public setHeaderCanon ( string $canon ) : Swift_Signers_DKIMSigner | ||
$canon | string | |
Результат | Swift_Signers_DKIMSigner |
public setHeaders ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DKIMSigner | ||
$headers | Swift_Mime_HeaderSet | |
Результат | Swift_Signers_DKIMSigner |
public setSignatureExpiration ( integer $time ) : Swift_Signers_DKIMSigner | ||
$time | integer | A timestamp |
Результат | Swift_Signers_DKIMSigner |
public setSignatureTimestamp ( integer $time ) : Swift_Signers_DKIMSigner | ||
$time | integer | A timestamp |
Результат | Swift_Signers_DKIMSigner |
public setSignerIdentity ( string $identity ) : Swift_Signers_DKIMSigner | ||
$identity | string | |
Результат | Swift_Signers_DKIMSigner |
public unbind ( Swift_InputByteStream $is ) | ||
$is | Swift_InputByteStream |
protected bool $debugHeaders | ||
Результат | boolean |
protected Swift_Mime_Headers_ParameterizedHeader $dkimHeader | ||
Результат | Swift_Mime_Headers_ParameterizedHeader |
protected string $hashAlgorithm | ||
Результат | string |
protected string $headerCanon | ||
Результат | string |
protected array $ignoredHeaders | ||
Результат | array |
protected int $signatureExpiration | ||
Результат | integer |
protected mixed $signatureTimestamp | ||
Результат | mixed |
protected array $signedHeaders | ||
Результат | array |
protected string $signerIdentity | ||
Результат | string |