
org.pac4j.play.store.NoOpDataEncrypter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-pac4j_2.12 Show documentation
Show all versions of play-pac4j_2.12 Show documentation
Security library for Play framework based on pac4j using Scala 2.12
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