public static Properties getSecurityProperties(final String file, final String psw, final String alias) {
        val properties = new Properties();
        properties.put("org.apache.ws.security.crypto.provider", "org.apache.ws.security.components.crypto.Merlin");
        properties.put("org.apache.ws.security.crypto.merlin.keystore.type", "jks");

        if (StringUtils.isNotBlank(psw)) {
            properties.put("org.apache.ws.security.crypto.merlin.keystore.password", psw);
        }
        if (StringUtils.isNotBlank(file)) {
            properties.put("org.apache.ws.security.crypto.merlin.keystore.file", file);
        }
        if (StringUtils.isNotBlank(alias)) {
            properties.put("org.apache.ws.security.crypto.merlin.keystore.alias", alias);
        }
        return properties;
    }
Gets security properties.

@param file  the file
@param psw   the psw
@param alias the alias
@return the security properties
support/cas-server-support-ws-sts-api/src/main/java/org/apereo/cas/support/util/CryptoUtils.java