Свойство | Type | Description | |
---|---|---|---|
$encryptCert | |||
$encryptCipher | |||
$encryptLevel | |||
$encryptOptions | |||
$extraCerts | |||
$headerFactory | Swift_Mime_HeaderFactory | ||
$replacementFactory | Swift_StreamFilters_StringReplacementFilterFactory | ||
$signCertificate | |||
$signLevel | |||
$signOptions | |||
$signPrivateKey | |||
$signThenEncrypt |
Méthode | Description | |
---|---|---|
__construct ( string | null $signCertificate = null, string | null $signPrivateKey = null, string | null $encryptCertificate = null ) | Constructor. | |
getAlteredHeaders ( ) : array | Return the list of header a signer might tamper. | |
getSignCertificate ( ) : string | ||
getSignPrivateKey ( ) : string | ||
isSignThenEncrypt ( ) : boolean | ||
newInstance ( string $certificate = null, string $privateKey = null ) : Swift_Signers_SMimeSigner | Returns an new Swift_Signers_SMimeSigner instance. | |
reset ( ) : Swift_Signers_SMimeSigner | Resets internal states. | |
setEncryptCertificate ( string | array $recipientCerts, integer $cipher = null ) : Swift_Signers_SMimeSigner | Set the certificate location to use for encryption. | |
setSignCertificate ( string $certificate, string | array $privateKey = null, integer $signOptions = PKCS7_DETACHED, string $extraCerts = null ) : Swift_Signers_SMimeSigner | Set the certificate location to use for signing. | |
setSignThenEncrypt ( boolean $signThenEncrypt = true ) : Swift_Signers_SMimeSigner | Set perform signing before encryption. | |
signMessage ( Swift_Message $message ) : Swift_Signers_SMimeSigner | Change the Swift_Message to apply the signing. |
Méthode | Description | |
---|---|---|
copyFromOpenSSLOutput ( Swift_OutputByteStream $fromStream, Swift_InputByteStream $toStream ) | ||
createMessage ( Swift_Message $message ) : Swift_Message | ||
messageStreamToEncryptedByteStream ( Swift_FileStream $outputStream, Swift_InputByteStream $is ) | ||
messageStreamToSignedByteStream ( Swift_FileStream $outputStream, Swift_InputByteStream $inputStream ) | ||
streamToMime ( Swift_OutputByteStream $fromStream, Swift_Message $message ) | Merges an OutputByteStream to Swift_Message. | |
toSMimeByteStream ( Swift_InputByteStream $inputStream, Swift_Message $message ) |
protected copyFromOpenSSLOutput ( Swift_OutputByteStream $fromStream, Swift_InputByteStream $toStream ) | ||
$fromStream | Swift_OutputByteStream | |
$toStream | Swift_InputByteStream |
protected createMessage ( Swift_Message $message ) : Swift_Message | ||
$message | Swift_Message | |
Résultat | Swift_Message |
public getAlteredHeaders ( ) : array | ||
Résultat | array |
protected messageStreamToEncryptedByteStream ( Swift_FileStream $outputStream, Swift_InputByteStream $is ) | ||
$outputStream | Swift_FileStream | |
$is | Swift_InputByteStream |
protected messageStreamToSignedByteStream ( Swift_FileStream $outputStream, Swift_InputByteStream $inputStream ) | ||
$outputStream | Swift_FileStream | |
$inputStream | Swift_InputByteStream |
public static newInstance ( string $certificate = null, string $privateKey = null ) : Swift_Signers_SMimeSigner | ||
$certificate | string | |
$privateKey | string | |
Résultat | Swift_Signers_SMimeSigner |
public reset ( ) : Swift_Signers_SMimeSigner | ||
Résultat | Swift_Signers_SMimeSigner |
public setSignCertificate ( string $certificate, string | array $privateKey = null, integer $signOptions = PKCS7_DETACHED, string $extraCerts = null ) : Swift_Signers_SMimeSigner | ||
$certificate | string | |
$privateKey | string | array | If the key needs an passphrase use array('file-location', 'passphrase') instead |
$signOptions | integer | Bitwise operator options for openssl_pkcs7_sign() |
$extraCerts | string | A file containing intermediate certificates needed by the signing certificate |
Résultat | Swift_Signers_SMimeSigner |
public setSignThenEncrypt ( boolean $signThenEncrypt = true ) : Swift_Signers_SMimeSigner | ||
$signThenEncrypt | boolean | |
Résultat | Swift_Signers_SMimeSigner |
public signMessage ( Swift_Message $message ) : Swift_Signers_SMimeSigner | ||
$message | Swift_Message | |
Résultat | Swift_Signers_SMimeSigner |
protected streamToMime ( Swift_OutputByteStream $fromStream, Swift_Message $message ) | ||
$fromStream | Swift_OutputByteStream | |
$message | Swift_Message |
protected toSMimeByteStream ( Swift_InputByteStream $inputStream, Swift_Message $message ) | ||
$inputStream | Swift_InputByteStream | |
$message | Swift_Message |
protected Swift_Mime_HeaderFactory $headerFactory | ||
Résultat | Swift_Mime_HeaderFactory |
protected Swift_StreamFilters_StringReplacementFilterFactory $replacementFactory | ||
Résultat | Swift_StreamFilters_StringReplacementFilterFactory |