Package org.picketlink.identity.federation.core.wstrust.STSClientConfig

Examples of org.picketlink.identity.federation.core.wstrust.STSClientConfig.Builder.password()


                if (StringUtil.isNullOrEmpty(iCount))
                    throw logger.optionNotSet("Iteration Count");

                int iterationCount = Integer.parseInt(iCount);
                try {
                    builder.password(StringUtil.decode(passwordString, salt, iterationCount));
                } catch (Exception e) {
                    throw logger.unableToDecodePasswordError(passwordString);
                }
            }
            client = STSClientFactory.getInstance(maxClientsInPool).create(initialNumberOfClients, builder.build());
View Full Code Here


                if (StringUtil.isNullOrEmpty(iCount))
                    throw logger.optionNotSet("Iteration Count");

                int iterationCount = Integer.parseInt(iCount);
                try {
                    builder.password(StringUtil.decode(passwordString, salt, iterationCount));
                } catch (Exception e) {
                    throw logger.unableToDecodePasswordError("Unable to decode password:" + passwordString);
                }
            }
            return builder;
View Full Code Here

    public void testBuildFromConfigPropertiesFileOverridePassword() {
        final Builder builder = new STSClientConfig.Builder("wstrust/sts-client.properties");
        assertAllProperties(builder.build());

        final String overriddenPassword = "newPassword";
        builder.password(overriddenPassword);
        final STSClientConfig config = builder.build();
        assertEquals(overriddenPassword, config.getPassword());
    }

    private void assertAllProperties(final STSClientConfig config) {
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.