code: public static Properties getSecurityProperties(final String file, final String psw, final String alias) {
          val p = new Properties();
          p.put("org.apache.ws.security.crypto.provider", "org.apache.ws.security.components.crypto.Merlin");
          p.put("org.apache.ws.security.crypto.merlin.keystore.type", "jks");
          p.put("org.apache.ws.security.crypto.merlin.keystore.password", psw);
          p.put("org.apache.ws.security.crypto.merlin.keystore.file", file);
          if (StringUtils.isNotBlank(alias)) {
              p.put("org.apache.ws.security.crypto.merlin.keystore.alias", alias);
          }
          return p;
      }
docs: Gets security properties.
  
  @param file  the file
  @param psw   the psw
  @param alias the alias
  @return the security properties