PHP 클래스 Swift_Signers_DKIMSigner

저자: Xavier De Cock ([email protected])
상속: implements Swift_Signers_HeaderSigner
파일 보기 프로젝트 열기: swiftmailer/swiftmailer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $privateKey, string $domainName, string $selector )
$privateKey string
$domainName string
$selector string

addHeader() 보호된 메소드

* Private helpers
protected addHeader ( $header, $is_sig = false )

addSignature() 공개 메소드

Add the signature to the given Headers.
public addSignature ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DKIMSigner
$headers Swift_Mime_HeaderSet
리턴 Swift_Signers_DKIMSigner

bind() 공개 메소드

The stream acts as an observer, receiving all data that is written. All {@link write()} and {@link flushBuffers()} operations will be mirrored.
public bind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

canonicalizeBody() 보호된 메소드

protected canonicalizeBody ( $string )

commit() 공개 메소드

For any bytes that are currently buffered inside the stream, force them off the buffer.
public commit ( )

endBody() 공개 메소드

End Body.
public endBody ( )

endOfBody() 보호된 메소드

protected endOfBody ( )

flushBuffers() 공개 메소드

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
public flushBuffers ( )

getAlteredHeaders() 공개 메소드

Returns the list of Headers Tampered by this plugin.
public getAlteredHeaders ( ) : array
리턴 array

ignoreHeader() 공개 메소드

Adds an ignored Header.
public ignoreHeader ( string $header_name ) : Swift_Signers_DKIMSigner
$header_name string
리턴 Swift_Signers_DKIMSigner

reset() 공개 메소드

Reset the Signer.
또한 보기: Swift_Signer::reset()
public reset ( )

setBodyCanon() 공개 메소드

Set the body canonicalization algorithm.
public setBodyCanon ( string $canon ) : Swift_Signers_DKIMSigner
$canon string
리턴 Swift_Signers_DKIMSigner

setBodySignedLen() 공개 메소드

Set the length of the body to sign.
public setBodySignedLen ( mixed $len ) : Swift_Signers_DKIMSigner
$len mixed (bool or int)
리턴 Swift_Signers_DKIMSigner

setDebugHeaders() 공개 메소드

Enable / disable the DebugHeaders.
public setDebugHeaders ( boolean $debug ) : Swift_Signers_DKIMSigner
$debug boolean
리턴 Swift_Signers_DKIMSigner

setHashAlgorithm() 공개 메소드

Set hash_algorithm, must be one of rsa-sha256 | rsa-sha1 defaults to rsa-sha256.
public setHashAlgorithm ( string $hash ) : Swift_Signers_DKIMSigner
$hash string
리턴 Swift_Signers_DKIMSigner

setHeaderCanon() 공개 메소드

Set the header canonicalization algorithm.
public setHeaderCanon ( string $canon ) : Swift_Signers_DKIMSigner
$canon string
리턴 Swift_Signers_DKIMSigner

setHeaders() 공개 메소드

Set the headers to sign.
public setHeaders ( Swift_Mime_HeaderSet $headers ) : Swift_Signers_DKIMSigner
$headers Swift_Mime_HeaderSet
리턴 Swift_Signers_DKIMSigner

setSignatureExpiration() 공개 메소드

Set the signature expiration timestamp.
public setSignatureExpiration ( integer $time ) : Swift_Signers_DKIMSigner
$time integer A timestamp
리턴 Swift_Signers_DKIMSigner

setSignatureTimestamp() 공개 메소드

Set the signature timestamp.
public setSignatureTimestamp ( integer $time ) : Swift_Signers_DKIMSigner
$time integer A timestamp
리턴 Swift_Signers_DKIMSigner

setSignerIdentity() 공개 메소드

Set the signer identity.
public setSignerIdentity ( string $identity ) : Swift_Signers_DKIMSigner
$identity string
리턴 Swift_Signers_DKIMSigner

startBody() 공개 메소드

Start Body.
public startBody ( )

unbind() 공개 메소드

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.
public unbind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

write() 공개 메소드

Writing may not happen immediately if the stream chooses to buffer. If you want to write these bytes with immediate effect, call {@link commit()} after calling write(). This method returns the sequence ID of the write (i.e. 1 for first, 2 for second, etc etc).
public write ( string $bytes ) : integer
$bytes string
리턴 integer

프로퍼티 상세

$bodyCanon 보호되어 있는 프로퍼티

Body canon method.
protected string $bodyCanon
리턴 string

$bodyLen 보호되어 있는 프로퍼티

BodyLength.
protected int $bodyLen
리턴 integer

$debugHeaders 보호되어 있는 프로퍼티

Must we embed signed headers?
protected bool $debugHeaders
리턴 boolean

$dkimHeader 보호되어 있는 프로퍼티

Stores the signature header.
protected Swift_Mime_Headers_ParameterizedHeader $dkimHeader
리턴 Swift_Mime_Headers_ParameterizedHeader

$domainName 보호되어 있는 프로퍼티

DomainName.
protected string $domainName
리턴 string

$hashAlgorithm 보호되어 있는 프로퍼티

Hash algorithm used.
protected string $hashAlgorithm
리턴 string

$headerCanon 보호되어 있는 프로퍼티

Header canon method.
protected string $headerCanon
리턴 string

$ignoredHeaders 보호되어 있는 프로퍼티

Headers not being signed.
protected array $ignoredHeaders
리턴 array

$maxLen 보호되어 있는 프로퍼티

Maximum signedLen.
protected int $maxLen
리턴 integer

$privateKey 보호되어 있는 프로퍼티

PrivateKey.
protected string $privateKey
리턴 string

$selector 보호되어 있는 프로퍼티

Selector.
protected string $selector
리턴 string

$showLen 보호되어 있는 프로퍼티

Embbed bodyLen in signature.
protected bool $showLen
리턴 boolean

$signatureExpiration 보호되어 있는 프로퍼티

When will the signature expires false means not embedded, if sigTimestamp is auto Expiration is relative, otherwhise it's absolute.
protected int $signatureExpiration
리턴 integer

$signatureTimestamp 보호되어 있는 프로퍼티

When the signature has been applied (true means time()), false means not embedded.
protected mixed $signatureTimestamp
리턴 mixed

$signedHeaders 보호되어 있는 프로퍼티

Headers used to generate hash.
protected array $signedHeaders
리턴 array

$signerIdentity 보호되어 있는 프로퍼티

Signer identity.
protected string $signerIdentity
리턴 string