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

Class: Crypt_GPG_Signature

Source Location: /Crypt_GPG-0.6.0/GPG/Signature.php

Class Overview


A class for GPG signature information


Author(s):

Copyright:

  • 2005-2008 silverorange

Methods


Inherited Variables

Inherited Methods


Class Details

[line 58]
A class for GPG signature information

This class is used to store the results of the Crypt_GPG::verify() method.



[ Top ]


Method Detail

getCreationDate   [line 150]

integer getCreationDate( )

Gets the creation date of this signature
  • Return: the creation date of this signature. This is a Unix timestamp.
  • Access: public

[ Top ]

getExpirationDate   [line 165]

integer getExpirationDate( )

Gets the expiration date of the signature
  • Return: the expiration date of this signature. This is a Unix timestamp. If this signature does not expire, this will be zero.
  • Access: public

[ Top ]

getId   [line 123]

string getId( )

Gets the id of this signature
  • Return: a base64-encoded string containing a unique id for this signature. This id is used to prevent replay attacks and is not present for all types of signatures.
  • Access: public

[ Top ]

getKeyFingerprint   [line 136]

string getKeyFingerprint( )

Gets the fingerprint of the key used to create this signature
  • Return: the fingerprint of the key used to create this signature.
  • Access: public

[ Top ]

getUserId   [line 178]

Crypt_GPG_UserId getUserId( )

Gets the user id associated with this signature
  • Return: the user id associated with this signature.
  • Access: public

[ Top ]

isValid   [line 191]

boolean isValid( )

Gets whether or no this signature is valid
  • Return: true if this signature is valid and false if it is not.
  • Access: public

[ Top ]

setCreationDate   [line 242]

void setCreationDate( integer $creation_date)

Sets the creation date of this signature
  • Access: public

Parameters:

integer   $creation_date   —  the creation date of this signature. This is a Unix timestamp.

[ Top ]

setExpirationDate   [line 259]

void setExpirationDate( integer $expiration_date)

Sets the expiration date of this signature
  • Access: public

Parameters:

integer   $expiration_date   —  the expiration date of this signature. This is a Unix timestamp. Specify zero if this signature does not expire.

[ Top ]

setId   [line 209]

void setId( string $id)

Sets the id of this signature

Parameters:

string   $id   —  a base64-encoded string containing a unique id for this signature.

[ Top ]

setIsValid   [line 291]

void setIsValid( boolean $is_valid)

Sets whether or not this signature is valid
  • Access: public

Parameters:

boolean   $is_valid   —  true if this signature is valid and false if it is not.

[ Top ]

setKeyFingerprint   [line 226]

void setKeyFingerprint( string $fingerprint)

Sets the key fingerprint of this signature
  • Access: public

Parameters:

string   $fingerprint   —  the key fingerprint of this signature. This is the fingerprint of the primary key used to sign this signature.

[ Top ]

setUserId   [line 275]

void setUserId( Crypt_GPG_UserId $user_id)

Sets the user id associated with this signature
  • Access: public

Parameters:

Crypt_GPG_UserId   $user_id   —  the user id associated with this signature.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:19:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.