class OrientKeyStoreStorage extends ComponentSupport implements KeyStoreStorage {

  @Override
  public void load(final KeyStore keyStore, final char[] password)
      throws NoSuchAlgorithmException, CertificateException, IOException
  {
    OrientKeyStoreData entity = storageManager.load(keyStoreName);
    checkState(entity != null, "key store %s does not exist", keyStoreName);
    keyStore.load(new ByteArrayInputStream(entity.getBytes()), password);
    loadedVersion = entity.getEntityMetadata().getVersion();
    log.debug("Loaded version {} of key store {}", loadedVersion, keyStoreName);
  }

  public  OrientKeyStoreStorage(final OrientKeyStoreStorageManager storageManager, final String keyStoreName);

}