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

Examples of org.picketlink.identity.federation.core.wstrust.auth.STSIssuingLoginModule.initialize()


        final STSIssuingLoginModule loginModule = new FakeSTSIssuingLoginModule(stsClient);
        final CallbackHandler callbackHandler = new TestCallbackHandler("admin", "admin");
        final Subject subject = new Subject();
        final HashMap<String, Object> sharedState = new HashMap<String, Object>();

        loginModule.initialize(subject, callbackHandler, sharedState, allOptions());

        // Simulate Phase 1
        assertTrue(loginModule.login());

        final Object token = loginModule.getSharedToken();
View Full Code Here


        sharedState.put("javax.security.auth.login.password", password.toCharArray());

        final Map<String, String> options = allOptions();
        options.put(AbstractSTSLoginModule.OPTIONS_PW_STACKING, "useFirstPass");

        loginModule.initialize(subject, null, sharedState, options);

        assertTrue(loginModule.isUseFirstPass());
        assertEquals(username, loginModule.getSharedUsername());
        assertEquals(password, new String(loginModule.getSharedPassword()));
    }
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.