beecrypt::security::KeyStore Class Reference
[C++ classes mimicking java.security]

#include <KeyStore.h>

Inheritance diagram for beecrypt::security::KeyStore:

Inheritance graph
[legend]
Collaboration diagram for beecrypt::security::KeyStore:

Collaboration graph
[legend]

List of all members.

Classes

class  Entry
class  LoadStoreParameter
class  PasswordProtection
class  PrivateKeyEntry
class  ProtectionParameter
class  SecretKeyEntry
class  TrustedCertificateEntry

Public Member Functions

virtual ~KeyStore ()
Enumeration< const String > * aliases ()
bool containsAlias (const String &alias) throw (KeyStoreException)
const Certificate * getCertificate (const String &alias) throw (KeyStoreException)
const String * getCertificateAlias (const Certificate &cert) throw (KeyStoreException)
const array< Certificate * > * getCertificateChain (const String &alias) throw (KeyStoreException)
bool isCertificateEntry (const String &alias) throw (KeyStoreException)
void setCertificateEntry (const String &alias, const Certificate &cert) throw (KeyStoreException)
void deleteEntry (const String &alias) throw (KeyStoreException)
Key * getKey (const String &alias, const array< jchar > &password) throw (KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException)
bool isKeyEntry (const String &alias) throw (KeyStoreException)
void setKeyEntry (const String &alias, const bytearray &key, const array< Certificate * > &chain) throw (KeyStoreException)
 Assigns the given key to the specified alias.
void setKeyEntry (const String &alias, const Key &key, const array< jchar > &password, const array< Certificate * > &chain) throw (KeyStoreException)
 Assigns the given key to the specified alias.
jint size () const throw (KeyStoreException)
void load (InputStream *in, const array< jchar > *password) throw (IOException, NoSuchAlgorithmException, CertificateException)
void store (OutputStream &out, const array< jchar > *password) throw (KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException)
const String & getType () const throw ()
const Provider & getProvider () const throw ()

Static Public Member Functions

static KeyStore * getInstance (const String &type) throw (KeyStoreException)
static KeyStore * getInstance (const String &type, const String &provider) throw (KeyStoreException, NoSuchProviderException)
static KeyStore * getInstance (const String &type, const Provider &provider) throw (KeyStoreException)
static const String & getDefaultType ()

Protected Member Functions

 KeyStore (KeyStoreSpi *spi, const Provider *provider, const String &type)


Constructor & Destructor Documentation

beecrypt::security::KeyStore::KeyStore ( KeyStoreSpi *  spi,
const Provider *  provider,
const String &  type 
) [protected]

virtual beecrypt::security::KeyStore::~KeyStore (  )  [virtual]


Member Function Documentation

Enumeration<const String>* beecrypt::security::KeyStore::aliases (  ) 

bool beecrypt::security::KeyStore::containsAlias ( const String &  alias  )  throw (KeyStoreException)

void beecrypt::security::KeyStore::deleteEntry ( const String &  alias  )  throw (KeyStoreException)

const Certificate* beecrypt::security::KeyStore::getCertificate ( const String &  alias  )  throw (KeyStoreException)

const String* beecrypt::security::KeyStore::getCertificateAlias ( const Certificate &  cert  )  throw (KeyStoreException)

const array<Certificate*>* beecrypt::security::KeyStore::getCertificateChain ( const String &  alias  )  throw (KeyStoreException)

static const String& beecrypt::security::KeyStore::getDefaultType (  )  [static]

static KeyStore* beecrypt::security::KeyStore::getInstance ( const String &  type,
const Provider &  provider 
) throw (KeyStoreException) [static]

static KeyStore* beecrypt::security::KeyStore::getInstance ( const String &  type,
const String &  provider 
) throw (KeyStoreException, NoSuchProviderException) [static]

static KeyStore* beecrypt::security::KeyStore::getInstance ( const String &  type  )  throw (KeyStoreException) [static]

Key* beecrypt::security::KeyStore::getKey ( const String &  alias,
const array< jchar > &  password 
) throw (KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException)

const Provider& beecrypt::security::KeyStore::getProvider (  )  const throw ()

const String& beecrypt::security::KeyStore::getType (  )  const throw ()

bool beecrypt::security::KeyStore::isCertificateEntry ( const String &  alias  )  throw (KeyStoreException)

bool beecrypt::security::KeyStore::isKeyEntry ( const String &  alias  )  throw (KeyStoreException)

void beecrypt::security::KeyStore::load ( InputStream *  in,
const array< jchar > *  password 
) throw (IOException, NoSuchAlgorithmException, CertificateException)

void beecrypt::security::KeyStore::setCertificateEntry ( const String &  alias,
const Certificate &  cert 
) throw (KeyStoreException)

void beecrypt::security::KeyStore::setKeyEntry ( const String &  alias,
const Key &  key,
const array< jchar > &  password,
const array< Certificate * > &  chain 
) throw (KeyStoreException)

Assigns the given key to the specified alias.

Warning:
A shallow copy of the chain array contents is made; consider the contents absorbed by the entry, and hence the certificate objects will be deleted in the entry destructor.

void beecrypt::security::KeyStore::setKeyEntry ( const String &  alias,
const bytearray &  key,
const array< Certificate * > &  chain 
) throw (KeyStoreException)

Assigns the given key to the specified alias.

Warning:
A shallow copy of the chain array contents is made; consider the contents absorbed by the entry, and hence the certificate objects will be deleted in the entry destructor.

jint beecrypt::security::KeyStore::size (  )  const throw (KeyStoreException)

void beecrypt::security::KeyStore::store ( OutputStream &  out,
const array< jchar > *  password 
) throw (KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException)


The documentation for this class was generated from the following file:

Generated on Fri Jun 19 13:39:43 2009 for BeeCrypt C++ by  doxygen 1.5.8