-
__construct
-
Contructs a private key key store entry.
-
__construct
-
Constructs a new base key store entry.
-
__construct
-
Constructs a secret key key store entry with the secret key.
-
__construct
-
Constructs a trusted certificate key store entry with the trusted certificate.
-
__construct
-
Constructs an X509Certificate using the PEM-encoded certificate data.
-
__construct
-
Constructs a DefaultSecretKey using the $keyData and $algorithm.
-
__construct
-
Constructs the unit test.
-
__construct
-
Default, no-argument contructor.
-
__construct
-
Constructs an DefaultPrivateKey using the $keyData and $algorithm.
-
__construct
-
Constructs an DefaultPublicKey using the $keyData and $algorithm.
-
__toString
-
Returns a string representation of this Crypt_KeyStore_TrustedCertificateEntry.
-
__toString
-
Returns a string representation of this certificate.
-
__toString
-
Returns a string representation of this key.
-
__toString
-
Returns a string representation of this key.
-
__toString
-
Returns a string representation of this Crypt_KeyStore_PrivateKeyEntry.
-
__toString
-
Returns a string representation of this key.
-
__toString
-
Returns a string representation of this Crypt_KeyStore_SecretKeyEntry.
-
CIPHER_3DES
-
Generic cipher algorithm constants.
-
CIPHER_ARCFOUR
-
-
CIPHER_ARCFOUR_IV
-
-
CIPHER_BLOWFISH
-
-
CIPHER_CAST
-
-
CIPHER_CRYPT
-
-
CIPHER_DES
-
-
CIPHER_ENIGMA
-
-
CIPHER_GOST
-
-
CIPHER_IDEA
-
-
CIPHER_LOKI97
-
-
CIPHER_MARS
-
-
CIPHER_PANAMA
-
-
CIPHER_RC2
-
-
CIPHER_RC6
-
-
CIPHER_RIJNDAEL
-
-
CIPHER_SAFER
-
-
CIPHER_SAFERPLUS
-
-
CIPHER_SERPENT
-
-
CIPHER_SKIPJACK
-
-
CIPHER_THREEWAY
-
-
CIPHER_TRIPLEDES
-
-
CIPHER_TWOFISH
-
-
CIPHER_WAKE
-
-
CIPHER_XTEA
-
-
containsAlias
-
Checks if the given alias exists in this Crypt_KeyStore.
-
containsAlias
-
Checks if the given alias exists in this Crypt_KeyStore.
-
containsAlias
-
Checks if the given alias exists in this Crypt_KeyStore.
-
createCSR
-
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
-
createCSR
-
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
-
createCSR
-
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
-
createSecretKey
-
Creates a symmetric secret key from a randomly generated
-
createSecretKey
-
Creates a symmetric secret key from a randomly generated
-
createSecretKey
-
Creates a symmetric secret key from a randomly generated
-
Certificate.php
-
-
Crypt_KeyStore
-
<p>This class represents a storage facility for cryptographic keys and certificates.</p>
-
Crypt_KeyStore_BaseEntry
-
Abstract base implementation of the key store entry interface.
-
Crypt_KeyStore_Certificate
-
-
CRYPT_KEYSTORE_CMDOPT_ALIAS
-
-
CRYPT_KEYSTORE_CMDOPT_DEST
-
-
CRYPT_KEYSTORE_CMDOPT_FILE
-
-
CRYPT_KEYSTORE_CMDOPT_KEYPASS
-
-
CRYPT_KEYSTORE_CMDOPT_KEYSTORE
-
-
CRYPT_KEYSTORE_CMDOPT_NEW
-
-
CRYPT_KEYSTORE_CMDOPT_STOREPASS
-
-
CRYPT_KEYSTORE_CMD_CERTREQ
-
-
CRYPT_KEYSTORE_CMD_DELETE
-
-
CRYPT_KEYSTORE_CMD_EXPORT
-
-
CRYPT_KEYSTORE_CMD_GENKEY
-
-
CRYPT_KEYSTORE_CMD_IMPORT
-
-
CRYPT_KEYSTORE_CMD_KEYCLONE
-
-
CRYPT_KEYSTORE_CMD_KEYPASSWD
-
-
CRYPT_KEYSTORE_CMD_LIST
-
-
CRYPT_KEYSTORE_CMD_STOREPASSWD
-
-
Crypt_KeyStore_Entry
-
Defines an entry in the key store.
-
Crypt_KeyStore_Exception
-
Wrapper exception class that encapsulates any exception/error from the underlying menchanisms involved in encrypting, hashing, encoding, loading, storing, etc. the key store.
-
Crypt_KeyStore_Key
-
Interface for keys (symmetric or asymmetric) stored by the key store.
-
Crypt_KeyStore_KeyTool
-
A trusted certificate key store entry that includes a trusted certificate.
-
CRYPT_KEYSTORE_MAIN_METHOD
-
-
Crypt_KeyStore_PrivateKey
-
Marker interface for implementations of a private key.
-
Crypt_KeyStore_PrivateKeyEntry
-
An asymmetric private key key store entry that includes a public certificate, a private key, and optionally a certificate chain.
-
Crypt_KeyStore_PublicKey
-
Marker interface for implementations of a public key.
-
Crypt_KeyStore_SecretKey
-
Marker interface for implementations of a secret key.
-
Crypt_KeyStore_SecretKeyEntry
-
A symmetric key key store entry that includes a secret key.
-
Crypt_KeyStore_SPI_DefaultKeyStore
-
Default SPI implemetation.
-
Crypt_KeyStore_SPI_DefaultPrivateKey
-
PrivateKey implementation for use with OpenSSL extension where the encoded format is PEM X509.
-
Crypt_KeyStore_SPI_DefaultPublicKey
-
PublicKey implementation for use with OpenSSL extension where the encoded format is PEM X509.
-
Crypt_KeyStore_SPI_DefaultSecretKey
-
Default implementation of the SecretKey interface for use with mycrypt/mhash.
-
Crypt_KeyStore_SPI_KeyStoreSPI
-
This class defines the Service Provider Interface (SPI) for the KeyStore class. All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a keystore for a particular keystore type.
-
Crypt_KeyStore_SPI_X509Certificate
-
Certificate interface implementation for X509 certificates.
-
Crypt_KeyStore_Test
-
Crypt_KeyStore unit test case.
-
Crypt_KeyStore_TrustedCertificateEntry
-
A trusted certificate key store entry that includes a trusted certificate.
-
getAlgorithm
-
Returns the standard algorithm name for this key. For RSA public keys, the algorithm will be 'RSA'.
-
getAlgorithm
-
Returns the standard algorithm name for this key.
-
getAlgorithm
-
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key.
-
getAlgorithm
-
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key.
-
getCertificate
-
Gets the end entity Certificate from the certificate chain in this entry.
-
getCertificateAlias
-
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
-
getCertificateAlias
-
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
-
getCertificateAlias
-
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
-
getCertificateChain
-
Returns the certificate chain associated with the given alias.
-
getCertificateChain
-
Returns the certificate chain associated with the given alias.
-
getCertificateChain
-
Gets the Certificate chain from this entry.
-
getCertificateChain
-
Returns the certificate chain associated with the given alias.
-
getCreationDate
-
Returns the creation date of the entry identified by the given alias.
-
getCreationDate
-
Returns the creation date of the entry identified by the given alias.
-
getCreationDate
-
Returns the date the entry was created in the key store.
-
getCreationDate
-
Returns the creation date of the entry identified by the given alias.
-
getCreationDate
-
Returns the date/time stamp the key store entry was added to the key store.
-
getDefaultType
-
Returns the default Crypt_KeyStore type.
-
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.
-
getEncoded
-
Returns the key in its primary encoding format, or null if this key does not support encoding.
-
getEncoded
-
Returns the key in its primary encoding format, or null if this key does not support encoding.
-
getEncoded
-
Returns the key in its primary encoding format, or null if this key does not support encoding.
-
getEncoded
-
Returns the encoded form of this certificate.
-
getEncoded
-
Returns the key in its primary encoding format, or null if this key does not support encoding.
-
getEntry
-
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
-
getEntry
-
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
-
getEntry
-
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
-
getEntryType
-
Returns the type of the key store entry.
-
getEntryType
-
Returns the type of the key store entry.
-
getEntryType
-
Returns an integer identifier that indicates the type of key store entry.
-
getEntryType
-
Returns the type of the key store entry.
-
getFormat
-
Returns the name of the primary encoding format of this key, or null if
-
getFormat
-
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'.
-
getFormat
-
Returns the name of the primary encoding format of this key, or null if this key does not support encoding. For symmetric, secret keys, the formatting is 'HEX'.
-
getFormat
-
Returns the name of the primary encoding format of this key, or null if this key does not support encoding. For default private keys, the format is 'X509'.
-
getInstance
-
Returns a Crypt_KeyStore object of the specified type. If an instance of the specified type is not already initialized, a new instance is created.
-
getOptionValue
-
Returns the named option's value from the options array.
-
getPrivateKey
-
Gets the PrivateKey from this entry.
-
getPublicKey
-
Gets the public key from this certificate.
-
getPublicKey
-
Gets the public key from this certificate.
-
getSecretKey
-
Gets the SecretKey from this entry.
-
getSize
-
Returns the size of the key in # of characters. In other words, a 256-bit key would be 32 characters (8 bits/character).
-
getSize
-
Returns the size of the key, in bits.
-
getTrustedCertificate
-
Gets the trusted Certficate from this entry.
-
getType
-
Returns the type of this certificate. For this implementation, the type
-
getType
-
Returns the type of this Crypt_KeyStore.
-
getType
-
Returns the type of this certificate.
-
getType
-
Returns the type of this Crypt_KeyStore.
-
getType
-
Returns the type of this Crypt_KeyStore.
-
importCertificate
-
Imports a signed-certificate into the key store assigning the alias to the new entry. If the alias is a pre-existing private key, the certificate must be valid and correspond to the private key. Otherwise, an exception is thrown.
-
importCertificate
-
Imports a signed-certificate into the key store assigning the alias to the new entry. If the alias is a pre-existing private key, the certificate must be valid and correspond to the private key. Otherwise, an exception is thrown.
-
importCertificate
-
Imports a signed-certificate into the key store assigning the alias to
-
initializeDn
-
Helper function to return an associative array initialized with default values for a distinguished name (DN) worthy of creating a CSR.
-
isCertificateEntry
-
Returns true if the entry identified by the given alias was created by a call to _setCertificateEntry, or created by a call to _setEntry with a Crypt_KeyStore_TrustedCertificateEntry.
-
isCertificateEntry
-
Returns true if the entry identified by the given alias is a Crypt_KeyStore_TrustedCertificateEntry.
-
isCertificateEntry
-
Returns true if the entry identified by the given alias was created by a call to _setCertificateEntry, or created by a call to _setEntry with a Crypt_KeyStore_TrustedCertificateEntry.
-
isEqualTo
-
Returns true if and only if this certificate is the same certificate as the Certificate object pointed to by $rhsCert.
-
isEqualTo
-
Returns true if and only if this certificate is the same certificate as the Certificate object pointed to by $rhsCert.
-
isKeyEntry
-
Returns true if the entry identified by the given alias was created by a call to _setKeyEntry, or created by a call to _setEntry with a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
-
isKeyEntry
-
Returns true if the entry identified by the given alias was created by a call to _setKeyEntry, or created by a call to _setEntry with a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
-
isKeyEntry
-
Returns true if the entry identified by the given alias was is a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
-
TrustedCertificateEntry.php
-
-
tearDown
-
Tears down the unit test.
-
testAliases
-
Test getting the list of aliases stored in the key store.
-
testContainsAlias
-
Test the "contains alias" query.
-
testCreateCSR
-
Test creating a CSR.
-
testCreateSecretKey
-
Test creating a symmetric secret key.
-
testDecryptAsymmetric
-
Test decrypting encrypted text with asymmetric key pair.
-
testDecryptSymmetric
-
Test decrypting encrypted text with symmetric secret key.
-
testDeleteEntry
-
Test deleting a key store entry.
-
testEncryptAsymmetric
-
Test encrypting plain text with asymmetric key pair.
-
testEncryptSymmetric
-
Test encrypting plain text with symmetric secret key.
-
testEntryInstanceOf
-
Test getting an instance of the default key store type.
-
testGetCertificateAlias
-
Test retrieving the alias of a certificate.
-
testGetCertificateChain
-
Test retrieving a certificate chain.
-
testGetCreationDate
-
Test getting an entry's creation date.
-
testGetDefaultType
-
Test retrieving the default key store type.
-
testGetEntry
-
Test retrieving a key store entry.
-
testGetType
-
Test getting the key store's type.
-
testImportCertificate
-
Tests the importing of a certificate.
-
testIsCertificateEntry
-
Test the "is certificate entry" query.
-
testIsKeyEntry
-
Test the "is key entry" query.
-
testLoad
-
Test loading a key store from a file.
-
testSign
-
Test signing data.
-
testStore
-
Test storing a key store to a file.
-
testVerify
-
Test verifying a signature.
-
TRUSTEDCERT_TYPE
-