PHP 클래스 Horde_Pgp_Mime, horde

저자: Michael Slusarz ([email protected])
상속: extends Horde_Pgp
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
armorToPart ( mixed $input, array $opts = [] ) : mixed Converts armored input into a Horde_Mime_Part object.
encryptPart ( Horde_Mime_Part $part, array $opts = [] ) : Horde_Mime_Part Encrypts a MIME part using PGP.
publicKeyPart ( mixed $key ) : Horde_Mime_Part Generate a Horde_Mime_Part object that contains a public key (RFC 3156 [7]).
signAndEncryptPart ( Horde_Mime_Part $part, mixed $privkey, array $opts = [] ) : Horde_Mime_Part Signs and encrypts a MIME part using PGP.
signPart ( Horde_Mime_Part $part, mixed $key, array $opts = [] ) : Horde_Mime_Part Signs a MIME part using PGP.

보호된 메소드들

메소드 설명
_encryptBase ( Horde_Pgp_Element_Message $encrypted ) : Horde_Mime_Part Create the base MIME part used for encryption (RFC 3156 [4]).
_encryptPart ( $data, $opts ) : Horde_Mime_Part Create the base MIME part used for encryption (RFC 3156 [4]).
_signPart ( $part, $detach_sig )

메소드 상세

_encryptBase() 보호된 메소드

Create the base MIME part used for encryption (RFC 3156 [4]).
protected _encryptBase ( Horde_Pgp_Element_Message $encrypted ) : Horde_Mime_Part
$encrypted Horde_Pgp_Element_Message Encrypted data.
리턴 Horde_Mime_Part Base encrypted MIME part.

_encryptPart() 보호된 메소드

Create the base MIME part used for encryption (RFC 3156 [4]).
protected _encryptPart ( $data, $opts ) : Horde_Mime_Part
리턴 Horde_Mime_Part Base encrypted MIME part.

_signPart() 보호된 메소드

protected _signPart ( $part, $detach_sig )

armorToPart() 공개 메소드

Converts armored input into a Horde_Mime_Part object.
public armorToPart ( mixed $input, array $opts = [] ) : mixed
$input mixed Armored input.
$opts array Additional options: - charset: (string) Charset of the armored input.
리턴 mixed Either null if no PGP data was found, or a Horde_Mime_Part object.

encryptPart() 공개 메소드

Encrypts a MIME part using PGP.
public encryptPart ( Horde_Mime_Part $part, array $opts = [] ) : Horde_Mime_Part
$part Horde_Mime_Part The object to encrypt.
$opts array Additional options: - cipher: (string) Default symmetric cipher algorithm to use. - compress: (string) Default compression algorithm. - pubkeys: (mixed) The public key(s) to use for encryption. - symmetric: (string) If set, use as symmetric key.
리턴 Horde_Mime_Part An encrypted object.

publicKeyPart() 공개 메소드

Generate a Horde_Mime_Part object that contains a public key (RFC 3156 [7]).
public publicKeyPart ( mixed $key ) : Horde_Mime_Part
$key mixed The public key.
리턴 Horde_Mime_Part An object that contains the public key.

signAndEncryptPart() 공개 메소드

Signs and encrypts a MIME part using PGP.
public signAndEncryptPart ( Horde_Mime_Part $part, mixed $privkey, array $opts = [] ) : Horde_Mime_Part
$part Horde_Mime_Part The part to sign and encrypt.
$privkey mixed The private key to use for signing (must be decrypted).
$opts array Additional options: - cipher: (string) Default symmetric cipher algorithm to use. - compress: (string) Default compression algorithm. - pubkeys: (mixed) The public key(s) to use for encryption. - symmetric: (string) If set, use as symmetric key.
리턴 Horde_Mime_Part A signed and encrypted part.

signPart() 공개 메소드

Signs a MIME part using PGP.
public signPart ( Horde_Mime_Part $part, mixed $key, array $opts = [] ) : Horde_Mime_Part
$part Horde_Mime_Part The object to sign.
$key mixed The private key to use for signing (must be decrypted).
$opts array Additional options: - compress: (string) Default compression algorithm.
리턴 Horde_Mime_Part A signed object.