Package io.undertow.server.session

Examples of io.undertow.server.session.SessionIdGenerator



    @Test
    public void testLotsOfPutsAndGets() {

        SessionIdGenerator generator = new SecureRandomSessionIdGenerator();
        final Map<String, String> reference = new HashMap<>();
        final SecureHashMap<String, String> map = new SecureHashMap<>();
        for (int i = 0; i < 10000; ++i) {
            String key = generator.createSessionId();
            String value = generator.createSessionId();
            map.put(key, value);
            reference.put(key, value);
        }
        for (Map.Entry<String, String> entry : reference.entrySet()) {
            Assert.assertEquals(entry.getValue(), map.get(entry.getKey()));
View Full Code Here



    @Test
    public void testLotsOfPutsAndGets() {

        SessionIdGenerator generator = new SecureRandomSessionIdGenerator();
        final Map<String, String> reference = new HashMap<String, String>();
        final SecureHashMap<String, String> map = new SecureHashMap<String, String>();
        for (int i = 0; i < 10000; ++i) {
            String key = generator.createSessionId();
            String value = generator.createSessionId();
            map.put(key, value);
            reference.put(key, value);
        }
        for (Map.Entry<String, String> entry : reference.entrySet()) {
            Assert.assertEquals(entry.getValue(), map.get(entry.getKey()));
View Full Code Here

TOP

Related Classes of io.undertow.server.session.SessionIdGenerator

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.