프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 Swift_Mime_Headers_ParameterizedHeader $dkimHeader | ||
리턴 | Swift_Mime_Headers_ParameterizedHeader |
protected int $signatureExpiration | ||
리턴 | integer |
protected mixed $signatureTimestamp | ||
리턴 | mixed |