Class Crypt_KeyStore_SPI_DefaultPublicKey

Description

Implements interfaces:

PublicKey implementation for use with OpenSSL extension where the encoded format is PEM X509.

Located in /Crypt/KeyStore/SPI/DefaultPublicKey.php (line 36)


	
			
Method Summary
Crypt_KeyStore_SPI_DefaultPublicKey __construct (string $keyData, string $algorithm)
string getAlgorithm ()
string getEncoded ()
string getFormat ()
string __toString ()
Methods
Constructor __construct (line 54)

Constructs an DefaultPublicKey using the $keyData and $algorithm.

  • access: public
Crypt_KeyStore_SPI_DefaultPublicKey __construct (string $keyData, string $algorithm)
  • string $keyData: the PEM encoded public key data
  • string $algorithm: the algorithm used to genereate the key
getAlgorithm (line 66)

Returns the standard algorithm name for this key. For RSA public keys, the algorithm will be 'RSA'.

  • return: the name of the algorithm associated with this key
  • access: public
string getAlgorithm ()

Implementation of:
Crypt_KeyStore_Key::getAlgorithm()
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key.
getEncoded (line 77)

Returns the key in its primary encoding format, or null if this key does not support encoding.

  • return: the encoded key, or null if the key does not support encoding.
  • access: public
string getEncoded ()

Implementation of:
Crypt_KeyStore_Key::getEncoded()
Returns the key in its primary encoding format, or null if this key does not support encoding.
getFormat (line 89)

Returns the name of the primary encoding format of this key, or null if this key does not support encoding. For default public keys, the format is 'X509'.

  • return: the primary encoding format of the key
  • access: public
string getFormat ()

Implementation of:
Crypt_KeyStore_Key::getFormat()
Returns the name of the primary encoding format of this key, or null if
__toString (line 99)

Returns a string representation of this key.

  • access: public
string __toString ()

Documentation generated on Tue, 08 Jul 2008 14:52:08 -0500 by phpDocumentor 1.4.2