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

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


      String password = null;

      StoreEntry entry = null;

      if (alias instanceof PasswordAlias) {
        PasswordAlias pa = (PasswordAlias) alias;
        password = pa.getPassword();
      }

      StoreEntryType type = alias.getType();

      switch (type) {
View Full Code Here


      String name = alias.getName();
      Object value = entry.getValue();
      String password = null;

      if (alias instanceof PasswordAlias) {
        PasswordAlias pa = (PasswordAlias) alias;
        password = pa.getPassword();
      }

      switch (entry.getType()) {
        case CERTIFICATE:
          this.keyStore.setCertificateEntry(name, (Certificate) value);
View Full Code Here

      InputStream inputStream = Resources.getResourceAsStream(timeStampConfig.getStoreResource());

      Store store = new JCAStore(KeyStoreType.valueOf(timeStampConfig.getStoreType()));
      store.read(inputStream, timeStampConfig.getStorePassword());

      StoreAlias alias = new PasswordAlias(timeStampConfig.getKeyAlias(), timeStampConfig.getKeyPassword());

      this.timeStampServer = new BouncyCastleTimeStampServer(store, alias);
    } catch (Exception e) {
      throw new ServletException(e);
    }
View Full Code Here

      InputStream inputStream = ClassLoaderUtils.getResourceAsStream(timeStampConfig.getStoreResource());

      Store store = new JCAStore(KeyStoreType.valueOf(timeStampConfig.getStoreType()));
      store.read(inputStream, timeStampConfig.getStorePassword());

      Alias alias = new PasswordAlias(timeStampConfig.getKeyAlias(), timeStampConfig.getKeyPassword());

      this.timeStampServer = new BouncyCastleTimeStampServer(store, alias);
    } catch (Exception e) {
      throw new ServletException(e);
    }
View Full Code Here

      String password = null;

      StoreEntry entry = null;

      if (alias instanceof PasswordAlias) {
        PasswordAlias pa = (PasswordAlias) alias;
        password = pa.getPassword();
      }

      switch (type) {
        case CERTIFICATE:
          Certificate certificate = this.keyStore.getCertificate(alias.getName());
View Full Code Here

      String name = alias.getName();
      Object value = entry.getValue();
      String password = null;

      if (alias instanceof PasswordAlias) {
        PasswordAlias pa = (PasswordAlias) alias;
        password = pa.getPassword();
      }

      switch (entry.getType()) {
        case CERTIFICATE:
          this.keyStore.setCertificateEntry(name, (Certificate) value);
View Full Code Here

      InputStream inputStream = ClassLoaderUtils.getResourceAsStream(timeStampConfig.getStoreResource());

      Store store = new JCAStore(KeyStoreType.valueOf(timeStampConfig.getStoreType()));
      store.read(inputStream, timeStampConfig.getStorePassword());

      Alias alias = new PasswordAlias(timeStampConfig.getKeyAlias(), timeStampConfig.getKeyPassword());

      this.timeStampServer = new BouncyCastleTimeStampServer(store, alias);
    } catch (Exception e) {
      throw new ServletException(e);
    }
View Full Code Here

      String password = null;

      StoreEntry entry = null;

      if (alias instanceof PasswordAlias) {
        PasswordAlias pa = (PasswordAlias) alias;
        password = pa.getPassword();
      }

      StoreEntryType type = alias.getType();

      switch (type) {
View Full Code Here

      String name = alias.getName();
      Object value = entry.getValue();
      String password = null;

      if (alias instanceof PasswordAlias) {
        PasswordAlias pa = (PasswordAlias) alias;
        password = pa.getPassword();
      }

      switch (entry.getType()) {
        case CERTIFICATE:
          this.keyStore.setCertificateEntry(name, (Certificate) value);
View Full Code Here

      InputStream inputStream = ClassLoaderUtils.getResourceAsStream(timeStampConfig.getStoreResource());

      Store store = new JCAStore(KeyStoreType.valueOf(timeStampConfig.getStoreType()));
      store.read(inputStream, timeStampConfig.getStorePassword());

      StoreAlias alias = new PasswordAlias(timeStampConfig.getKeyAlias(), timeStampConfig.getKeyPassword());

      this.timeStampServer = new BouncyCastleTimeStampServer(store, alias);
    } catch (Exception e) {
      throw new ServletException(e);
    }
View Full Code Here

TOP

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

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.