Crypt_GPG
[ class tree: Crypt_GPG ] [ index: Crypt_GPG ] [ all elements ]

Class: Crypt_GPG_SignatureCreationInfo

Source Location: /Crypt_GPG-1.6.4/Crypt/GPG/SignatureCreationInfo.php

Class Overview


Information about a recently created signature.


Author(s):

Copyright:

  • 2015 PEAR

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Information about a recently created signature.


[ Top ]


Class Variables

$class =

[line 61]

OpenPGP signature class
  • Access: protected

Type:   mixed


[ Top ]

$hashAlgorithm =

[line 54]

Algorithm to hash the data
  • See: RFC 2440 / 9.4. Hash Algorithm
  • Access: protected

Type:   integer


[ Top ]

$hashAlgorithmNames = array(
        1 => 'md5',
        2 => 'sha1',
        3 => 'ripemd160',
        5 => 'md2',
        6 => 'tiger192',
        7 => 'haval-5-160',
        8 => 'sha256',
        9 => 'sha384',
        10 => 'sha512',
        11 => 'sha224',
    )

[line 93]

Names for the hash algorithm IDs.

Names taken from RFC 3156, without the leading "pgp-".

  • See: RFC 2440 / 9.4. Hash Algorithm
  • See: RFC 3156 / 5. OpenPGP signed data
  • Access: protected

Type:   array


[ Top ]

$keyFingerprint =

[line 75]

Key fingerprint
  • Access: protected

Type:   string


[ Top ]

$mode =

[line 39]

One of the three signature types:

  • Access: protected

Type:   integer


[ Top ]

$pkAlgorithm =

[line 46]

Public Key algorithm
  • Access: protected

Type:   integer


[ Top ]

$timestamp =

[line 68]

Unix timestamp when the signature was created
  • Access: protected

Type:   integer


[ Top ]

$valid =

[line 82]

If the line given to the constructor was valid
  • Access: protected

Type:   boolean


[ Top ]



Method Detail

__construct (Constructor)   [line 111]

Crypt_GPG_SignatureCreationInfo __construct( [string $sigCreatedLine = null])

Parse a SIG_CREATED line from gnupg
  • Access: public

Parameters:

string   $sigCreatedLine   —  Line beginning with "SIG_CREATED "

[ Top ]

getHashAlgorithm   [line 180]

integer getHashAlgorithm( )

Return the hash algorithm used to hash the data to sign.
  • Access: public

[ Top ]

getHashAlgorithmName   [line 190]

string|null getHashAlgorithmName( )

Get a name for the used hashing algorithm.
  • Access: public

[ Top ]

getKeyFingerprint   [line 213]

string getKeyFingerprint( )

Return the key's fingerprint
  • Access: public

[ Top ]

getMode   [line 160]

integer getMode( )

Get the signature type

  • Access: public

[ Top ]

getPkAlgorithm   [line 170]

integer getPkAlgorithm( )

Return the public key algorithm used.
  • Access: public

[ Top ]

getTimestamp   [line 203]

integer getTimestamp( )

Return the timestamp at which the signature was created
  • Access: public

[ Top ]

isValid   [line 223]

boolean isValid( )

Tell if the fingerprint line given to the constructor was valid
  • Access: public

[ Top ]


Documentation generated on Sun, 22 Mar 2020 08:01:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.