Horde_Pgp_Element_SignedMessage
extends Horde_Pgp_Element
in package
PGP armor part: signed message.
Tags
Table of Contents
- $armorVersion : string
- Armor header identifying the current software version.
- $headers : array<string|int, mixed>
- Armor headers.
- $message : OpenPGP_Message
- Message object.
- $signature : Horde_Pgp_Element_Signature
- $text : Horde_Pgp_Element_Text
- $_armor : string
- Armor identifier.
- __construct() : mixed
- Constructor.
- __get() : mixed
- __toString() : mixed
- create() : Horde_Pgp_Element
- Creates the element from the first found armor part of the class type in the armored input data.
- dashEscapeText() : string
- Returns the normalized & dash-escaped text (RFC 4880 [7.1]) of the cleartext signed message.
- dashUnescapeText() : string
- Returns text after reversing any dash-escaping (RFC 4880 [7.1]) previously done on it.
Properties
$armorVersion
Armor header identifying the current software version.
public
string
$armorVersion
= 'Horde_Pgp Library (http://www.horde.org/)'
$headers
Armor headers.
public
array<string|int, mixed>
$headers
$message
Message object.
public
OpenPGP_Message
$message
$signature read-only
public
Horde_Pgp_Element_Signature
$signature
Signature element.
$text read-only
public
Horde_Pgp_Element_Text
$text
Literal text element.
$_armor
Armor identifier.
protected
string
$_armor
= 'SIGNED MESSAGE'
Methods
__construct()
Constructor.
public
__construct(mixed $data[, array<string|int, mixed> $headers = array() ]) : mixed
Parameters
- $data : mixed
-
Data of the part. Either raw PGP data or a OpenPGP_Message object.
- $headers : array<string|int, mixed> = array()
-
Header array.
Return values
mixed —__get()
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —create()
Creates the element from the first found armor part of the class type in the armored input data.
public
static create(mixed $data) : Horde_Pgp_Element
Parameters
- $data : mixed
-
Armored PGP data.
Return values
Horde_Pgp_Element —PGP element object.
dashEscapeText()
Returns the normalized & dash-escaped text (RFC 4880 [7.1]) of the cleartext signed message.
public
static dashEscapeText(string $text) : string
Parameters
- $text : string
-
Unescaped text.
Return values
string —Escaped text.
dashUnescapeText()
Returns text after reversing any dash-escaping (RFC 4880 [7.1]) previously done on it.
public
static dashUnescapeText(string $text) : string
Parameters
- $text : string
-
Escaped text.
Return values
string —Unescaped text.