All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pac4j.play.store.NoOpDataEncrypter Maven / Gradle / Ivy

The newest version!
package org.pac4j.play.store;

/**
 * A dummy DataEncrypter with no op functions. Used, for example, to generate unencrypted session cookie in `PlayCookieStore`.
 *
 * @author Vidmantas Zemleris
 * @since 6.1.0
 */
public class NoOpDataEncrypter implements DataEncrypter {
    @Override
    public byte[] decrypt(byte[] encryptedBytes) {
        return encryptedBytes;
    }

    @Override
    public byte[] encrypt(byte[] rawBytes) {
        return rawBytes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy