Examples of acceptSecurityToken()


Examples of waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken()

            WindowsAuthProviderImpl provider = new WindowsAuthProviderImpl();
            String connectionId = "testConnection-" + Thread.currentThread().getId();
            do {
                // accept the token on the server
                try {
                    serverContext = provider.acceptSecurityToken(connectionId, clientContext.getToken(),
                            securityPackage);
                } catch (Exception e) {
                    LOGGER.error("{}", e);
                    break;
                }
View Full Code Here

Examples of waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken()

            WindowsAuthProviderImpl provider = new WindowsAuthProviderImpl(1);
            int max = 100;
            for (int i = 0; i < max; i++) {
                Thread.sleep(25);
                String connectionId = "testConnection_" + i;
                serverContext = provider.acceptSecurityToken(connectionId, clientContext.getToken(), securityPackage);
                Assertions.assertThat(provider.getContinueContextsSize()).isGreaterThan(0);
            }
            LOGGER.debug("Cached security contexts: {}", Integer.valueOf(provider.getContinueContextsSize()));
            assertFalse(max == provider.getContinueContextsSize());
        } finally {
View Full Code Here

Examples of waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken()

            WindowsAuthProviderImpl provider = new WindowsAuthProviderImpl();
            String connectionId = "testConnection";
            do {
                // accept the token on the server
                try {
                    serverContext = provider.acceptSecurityToken(connectionId, clientContext.getToken(),
                            securityPackage);
                } catch (Exception e) {
                    LOGGER.error("{}", e);
                    break;
                }
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.