Package com.alibaba.citrus.service.requestcontext.session.store.cookie.impl

Examples of com.alibaba.citrus.service.requestcontext.session.store.cookie.impl.CookieStoreImpl


        service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
        SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
        SessionConfig config = f.getConfig();

        StoresConfig stores = config.getStores();
        CookieStoreImpl cookieStore = (CookieStoreImpl) stores.getStore("s1");

        assertEquals("/", getFieldValue(cookieStore, "path", null));
        assertEquals(0, getFieldValue(cookieStore, "maxAge", null));
        assertEquals(true, getFieldValue(cookieStore, "httpOnly", null));
        assertEquals(false, getFieldValue(cookieStore, "secure", null));
View Full Code Here


        service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
        SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
        SessionConfig config = f.getConfig();

        StoresConfig stores = config.getStores();
        CookieStoreImpl cookieStore = (CookieStoreImpl) stores.getStore("s1");
        SessionEncoder[] encoders = getFieldValue(cookieStore, "encoders", SessionEncoder[].class);
        SerializationEncoder sencoder = (SerializationEncoder) encoders[0];
        AesEncrypter aes = (AesEncrypter) sencoder.getEncrypter();

        assertEquals(128, aes.getKeySize());
View Full Code Here

        service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
        SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
        SessionConfig config = f.getConfig();

        StoresConfig stores = config.getStores();
        CookieStoreImpl cookieStore = (CookieStoreImpl) stores.getStore("s1");

        assertEquals("/", getFieldValue(cookieStore, "path", null));
        assertEquals(0, getFieldValue(cookieStore, "maxAge", null));
        assertEquals(true, getFieldValue(cookieStore, "httpOnly", null));
        assertEquals(false, getFieldValue(cookieStore, "secure", null));
View Full Code Here

        service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
        SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
        SessionConfig config = f.getConfig();

        StoresConfig stores = config.getStores();
        CookieStoreImpl cookieStore = (CookieStoreImpl) stores.getStore("s1");
        SessionEncoder[] encoders = getFieldValue(cookieStore, "encoders", SessionEncoder[].class);
        SerializationEncoder sencoder = (SerializationEncoder) encoders[0];
        AesEncrypter aes = (AesEncrypter) sencoder.getEncrypter();

        assertEquals(128, aes.getKeySize());
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.requestcontext.session.store.cookie.impl.CookieStoreImpl

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.