Package org.apache.wicket.util.crypt

Examples of org.apache.wicket.util.crypt.ICrypt


        secureParam = URLDecoder.decode(secureParam, Application.get()
            .getRequestCycleSettings().getResponseRequestEncoding());

        // Get the crypt implementation from the application
        final ICrypt urlCrypt = Application.get().getSecuritySettings().getCryptFactory()
            .newCrypt();

        // Decrypt the query string
        String queryString = urlCrypt.decryptUrlSafe(secureParam);

        // The querystring might have been shortened (length reduced).
        // In that case, lengthen the query string again.
        queryString = rebuildUrl(queryString);
        return queryString;
View Full Code Here


    };

    this.panel.setPersistent(true);
    this.form = (Form)panel.get("signInForm");

    final ICrypt crypt = tester.getApplication().getSecuritySettings().getCryptFactory()
        .newCrypt();
    final String encryptedPassword = crypt.encryptUrlSafe("test");
    assertNotNull(encryptedPassword);
    this.cookieUsername = new Cookie("panel:signInForm:username", "juergen");
    this.cookiePassword = new Cookie("panel:signInForm:password", encryptedPassword);
    this.cookies = new Cookie[] { cookieUsername, cookiePassword };
View Full Code Here

            return NoCrypt;
        }       
    }
 
    protected ICrypt getEncrypterFromSession(HttpSession s) {
        ICrypt result = (ICrypt) s.getAttribute(ICRYPT_ATTR_NAME);
        if (result !=null) return result;

        GeoServerSecurityManager manager = GeoServerApplication.get().getSecurityManager();
        char[] key = manager.getRandomPassworddProvider().getRandomPasswordWithDefaultLength();
       
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.crypt.ICrypt

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.