Package br.net.woodstock.rockframework.security.store

Examples of br.net.woodstock.rockframework.security.store.StoreException


    super();
    try {
      this.keyStore = KeyStore.getInstance(keyStoreType.getType());
      this.keyStore.load(null, null);
    } catch (Exception e) {
      throw new StoreException(e);
    }
  }
View Full Code Here


          list.add(new StoreAlias(alias, type));
        }
      }
      return Collections.toArray(list, StoreAlias.class);
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

          break;
      }

      return entry;
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

          break;
      }

      return true;
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

      this.keyStore.deleteEntry(alias.getName());

      return true;
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

  @Override
  public void read(final InputStream inputStream, final String password) throws IOException {
    try {
      this.keyStore.load(inputStream, this.toCharArray(password));
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

  @Override
  public void write(final OutputStream outputStream, final String password) throws IOException {
    try {
      this.keyStore.store(outputStream, this.toCharArray(password));
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

        String alias = secretKeyElement.getAttribute(XMLStore.ALIAS_ATTRIBUTE);
        SecretKey secretKey = this.getSecretKey(secretKeyElement, encoding);
        this.getSecretKeyMap().put(alias, secretKey);
      }
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    } catch (SAXException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

        SecretKey secretKey = entry.getValue();
        this.addSecretKeyElement(secretKeys, alias, secretKey);
      }
      document.write(outputStream);
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

        String alias = secretKeyElement.getAttribute(XMLStore.ALIAS_ATTRIBUTE);
        SecretKey secretKey = this.getSecretKey(secretKeyElement, encoding);
        this.getSecretKeyMap().put(alias, secretKey);
      }
    } catch (GeneralSecurityException e) {
      throw new StoreException(e);
    } catch (SAXException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.security.store.StoreException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.