Package org.switchyard.security.pull

Examples of org.switchyard.security.pull.KeyStorePuller


    private KeyStore getKeyStore() throws LoginException {
        String keyStoreLocation = getOption("keyStoreLocation", true);
        String keyStoreType = getOption("keyStoreType", false);
        String keyStorePassword = getOption("keyStorePassword", false);
        KeyStorePuller keyStorePuller = new KeyStorePuller(keyStoreType, keyStorePassword != null ? keyStorePassword.toCharArray() : null);
        return keyStorePuller.pullPath(keyStoreLocation, getClass(), PathType.values());
    }
View Full Code Here


    private void init(String keyStoreLocation, String keyStoreType, char[] keyStorePassword, String keyAlias, char[] keyPassword, String keyTransformation) {
        if (keyStoreLocation == null) {
            return;
        }
        KeyStorePuller keyStorePuller = new KeyStorePuller(keyStoreType, keyStorePassword);
        KeyStore keyStore = keyStorePuller.pullPath(keyStoreLocation, getClass(), PathType.values());
        try {
            Certificate certificate = keyStore.getCertificate(keyAlias);
            _publicKey = certificate.getPublicKey();
            _keyTransformation = keyTransformation != null ? keyTransformation : _publicKey.getAlgorithm();
        } catch (KeyStoreException kse) {
View Full Code Here

TOP

Related Classes of org.switchyard.security.pull.KeyStorePuller

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.