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

Class: Crypt_GPG_InvalidKeyParamsException

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

Class Overview

PEAR_Exception
   |
   --Crypt_GPG_Exception
      |
      --Crypt_GPG_InvalidKeyParamsException

An exception thrown when an attempt is made to generate a key and the key parameters set on the key generator are invalid


Author(s):

Copyright:

  • 2011 silverorange

Methods


Inherited Variables

Inherited Methods


Class Details

[line 502]
An exception thrown when an attempt is made to generate a key and the key parameters set on the key generator are invalid


[ Top ]


Method Detail

__construct (Constructor)   [line 539]

Crypt_GPG_InvalidKeyParamsException __construct( string $message, [integer $code = 0], [string $algorithm = 0], [string $size = 0], [string $usage = 0])

Creates a new Crypt_GPG_InvalidKeyParamsException
  • Access: public

Parameters:

string   $message   —  an error message.
integer   $code   —  a user defined error code.
string   $algorithm   —  the key algorithm.
string   $size   —  the key size.
string   $usage   —  the key usage.

[ Top ]

getAlgorithm   [line 561]

integer getAlgorithm( )

Gets the key algorithm
  • Return: the key algorithm.
  • Access: public

[ Top ]

getSize   [line 574]

integer getSize( )

Gets the key size
  • Return: the key size.
  • Access: public

[ Top ]

getUsage   [line 587]

integer getUsage( )

Gets the key usage
  • Return: the key usage.
  • 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.