Example usage for org.apache.wicket.util.crypt ClassCryptFactory ClassCryptFactory

List of usage examples for org.apache.wicket.util.crypt ClassCryptFactory ClassCryptFactory

Introduction

In this page you can find the example usage for org.apache.wicket.util.crypt ClassCryptFactory ClassCryptFactory.

Prototype

public ClassCryptFactory(final Class<?> cryptClass, final String encryptionKey) 

Source Link

Document

Construct.

Usage

From source file:com.lili.WicketExampleApplication.java

License:Apache License

/**
 * @see org.apache.wicket.protocol.http.WebApplication#init()
 *//*from www .j a v a 2 s .  co m*/
@Override
protected void init() {
    // WARNING: DO NOT do this on a real world application unless
    // you really want your app's passwords all passed around and
    // stored in unencrypted browser cookies (BAD IDEA!)!!!

    // The NoCrypt class is being used here because not everyone
    // has the java security classes required by Crypt installed
    // and we want them to be able to run the examples out of the
    // box.
    getSecuritySettings()
            .setCryptFactory(new ClassCryptFactory(NoCrypt.class, ISecuritySettings.DEFAULT_ENCRYPTION_KEY));

    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
}

From source file:com.mastfrog.acteur.wicket.borrowed.WicketExampleApplication.java

License:Apache License

/**
 * @see org.apache.wicket.protocol.http.WebApplication#init()
 *//*  w ww . ja v a  2s .co  m*/
@Override
protected void init() {
    // WARNING: DO NOT do this on a real world application unless
    // you really want your app's passwords all passed around and
    // stored in unencrypted browser cookies (BAD IDEA!)!!!

    // The NoCrypt class is being used here because not everyone
    // has the java security classes required by Crypt installed
    // and we want them to be able to run the examples out of the
    // box.
    getSecuritySettings()
            .setCryptFactory(new ClassCryptFactory(NoCrypt.class, SecuritySettings.DEFAULT_ENCRYPTION_KEY));

    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
}

From source file:org.berlin.wicket.HomeApplication.java

License:Open Source License

/**
 * @see org.apache.wicket.protocol.http.WebApplication#init()
 *///from   w w  w.ja v a  2s. c  om
@Override
protected void init() {
    // WARNING: DO NOT do this on a real world application unless
    // you really want your app's passwords all passed around and
    // stored in unencrypted browser cookies (BAD IDEA!)!!!

    // The NoCrypt class is being used here because not everyone
    // has the java security classes required by Crypt installed
    // and we want them to be able to run the examples out of the
    // box.
    getSecuritySettings()
            .setCryptFactory(new ClassCryptFactory(NoCrypt.class, ISecuritySettings.DEFAULT_ENCRYPTION_KEY));
    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
}