Examples of peekChain()


Examples of ch.inftec.ju.util.PropertyChainBuilder.peekChain()

     
      // Add explicit properties (if any)
      if (this.chain.properties.size() > 0) {
        Properties props = new Properties();
        for (Property property : this.chain.properties) {
          String key = chainBuilder.peekChain().interpolate(property.key);
          String value = property.value;
         
          if (value == null) continue;
         
          props.put(key, value);
View Full Code Here

Examples of ch.inftec.ju.util.PropertyChainBuilder.peekChain()

      }
     
      // Set decryptor (if any)
      if (this.chain.decryptor != null) {
        if (!StringUtils.isEmpty(this.chain.decryptor.decryptionPasswordPropertyName)) {
          String decryptionPassword = chainBuilder.peekChain().get(this.chain.decryptor.decryptionPasswordPropertyName);
          chainBuilder.setDecryptor(JuSecurityUtils.buildEncryptor()
              .password(decryptionPassword)
              .strong(this.chain.decryptor.strongEncryption)
              .createTextEncryptor());
        } else if (!StringUtils.isEmpty(this.chain.decryptor.keyFilePathPropertyName)) {
View Full Code Here

Examples of ch.inftec.ju.util.PropertyChainBuilder.peekChain()

          chainBuilder.setDecryptor(JuSecurityUtils.buildEncryptor()
              .password(decryptionPassword)
              .strong(this.chain.decryptor.strongEncryption)
              .createTextEncryptor());
        } else if (!StringUtils.isEmpty(this.chain.decryptor.keyFilePathPropertyName)) {
          String keyFileName = chainBuilder.peekChain().get(this.chain.decryptor.keyFilePathPropertyName);
          try {
            chainBuilder.setDecryptorByResource(keyFileName, this.chain.decryptor.strongEncryption);
          } catch (Exception ex) {
            if (this.chain.decryptor.ignoreMissingDecryption) {
              this.getLog().warn("Couldn't set decryptor. Continuing as ignoreMissingDecryption is true: " + ex);
View Full Code Here

Examples of ch.inftec.ju.util.PropertyChainBuilder.peekChain()

     
      // Add explicit properties (if any)
      if (this.chain.properties.size() > 0) {
        Properties props = new Properties();
        for (Property property : this.chain.properties) {
          String key = chainBuilder.peekChain().interpolate(property.key);
          String value = property.value;
         
          if (value == null) continue;
         
          props.put(key, value);
View Full Code Here

Examples of ch.inftec.ju.util.PropertyChainBuilder.peekChain()

      }
     
      // Set decryptor (if any)
      if (this.chain.decryptor != null) {
        if (!StringUtils.isEmpty(this.chain.decryptor.decryptionPasswordPropertyName)) {
          String decryptionPassword = chainBuilder.peekChain().get(this.chain.decryptor.decryptionPasswordPropertyName);
          chainBuilder.setDecryptor(JuSecurityUtils.buildEncryptor()
              .password(decryptionPassword)
              .strong(this.chain.decryptor.strongEncryption)
              .createTextEncryptor());
        } else if (!StringUtils.isEmpty(this.chain.decryptor.keyFilePathPropertyName)) {
View Full Code Here

Examples of ch.inftec.ju.util.PropertyChainBuilder.peekChain()

          chainBuilder.setDecryptor(JuSecurityUtils.buildEncryptor()
              .password(decryptionPassword)
              .strong(this.chain.decryptor.strongEncryption)
              .createTextEncryptor());
        } else if (!StringUtils.isEmpty(this.chain.decryptor.keyFilePathPropertyName)) {
          String keyFileName = chainBuilder.peekChain().get(this.chain.decryptor.keyFilePathPropertyName);
          chainBuilder.setDecryptorByResource(keyFileName, this.chain.decryptor.strongEncryption);
        }
      }
     
      PropertyChain chain = chainBuilder.getPropertyChain();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.