Class Crypt_KeyStore_SPI_X509Certificate

Description

Implements interfaces:

Certificate interface implementation for X509 certificates.

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


	
			
Method Summary
Crypt_KeyStore_SPI_X509Certificate __construct (string $rawCert)
string getEncoded ()
string getType ()
string __toString ()
Methods
Constructor __construct (line 48)

Constructs an X509Certificate using the PEM-encoded certificate data.

  • access: public
Crypt_KeyStore_SPI_X509Certificate __construct (string $rawCert)
  • string $rawCert: - PEM-encoded certificate data
getEncoded (line 58)

Returns the encoded form of this certificate.

  • return: the encoded form of this certificate
  • access: public
string getEncoded ()

Implementation of:
Crypt_KeyStore_Certificate::getEncoded()
Returns the encoded form of this certificate. It is assumed that each certificate type would have only a single form of encoding; for example, X.509 certificates would be encoded as PEM.
getPublicKey (line 68)

Gets the public key from this certificate.

  • access: public
Crypt_KeyStore_PublicKey getPublicKey ()

Implementation of:
Crypt_KeyStore_Certificate::getPublicKey()
Gets the public key from this certificate.
getType (line 102)

Returns the type of this certificate. For this implementation, the type

will be one of the OpenSSL certificate types:

  • OPENSSL_KEYTYPE_RSA,
  • OPENSSL_KEYTYPE_DSA,
  • OPENSSL_KEYTYPE_DH
  • OPENSSL_KEYTYPE_EC, or
  • -1, meaning unknown

  • return: the type of this certificate.
  • access: public
string getType ()

Implementation of:
Crypt_KeyStore_Certificate::getType()
Returns the type of this certificate.
isEqualTo (line 129)

Returns true if and only if this certificate is the same certificate as the Certificate object pointed to by $rhsCert.

  • return: true if $this == $rhsCert, false if not
  • access: public
boolean isEqualTo (Crypt_KeyStore_Certificate $rhsCert)

Implementation of:
Crypt_KeyStore_Certificate::isEqualTo()
Returns true if and only if this certificate is the same certificate as the Certificate object pointed to by $rhsCert.
__toString (line 144)

Returns a string representation of this certificate.

  • access: public
string __toString ()

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