Package org.platformlayer.ops.crypto

Examples of org.platformlayer.ops.crypto.ManagedKeystore


    File keystoreFile = template.getKeystoreFile();

    if (template.shouldCreateSslKey()) {
      // TODO: Unify with additional keys?
      // But be careful.. this is normally a shared key across all instances
      ManagedKeystore httpsKey = configDir.addChild(ManagedKeystore.class);
      httpsKey.path = keystoreFile;
      httpsKey.tagWithPublicKeys = template.getModel();
      httpsKey.alias = ManagedKeystore.DEFAULT_WEBSERVER_ALIAS;
      httpsKey.key = template.findPublicSslKey();
    }

    Map<String, ManagedSecretKey> keys = Maps.newHashMap();
    template.getAdditionalKeys(keys);
    for (Entry<String, ManagedSecretKey> entry : keys.entrySet()) {
      ManagedKeystore httpsKey = configDir.addChild(ManagedKeystore.class);
      httpsKey.path = keystoreFile;
      // httpsKey.tagWithPublicKeys = template.getModel();
      httpsKey.alias = entry.getKey();
      httpsKey.key = entry.getValue();
    }
View Full Code Here


    ManagedDirectory configDir = findDirectory(template.getConfigDir());
    File keystoreFile = template.getKeystoreFile();

    if (template.isMultitenant()) {
      ManagedKeystore masterProjectKey = configDir.addChild(ManagedKeystore.class);
      masterProjectKey.path = keystoreFile;

      masterProjectKey.alias = template.getMultitenantKeyAlias();
    }
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.crypto.ManagedKeystore

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.