use of org.apereo.cas.CipherExecutor in project cas by apereo.
the class TicketGrantingCookieCipherExecutorTests method checkEncryptionWithDefaultSettings.
@Test
public void checkEncryptionWithDefaultSettings() {
final CipherExecutor cipherExecutor = new TicketGrantingCookieCipherExecutor("1PbwSbnHeinpkZOSZjuSJ8yYpUrInm5aaV18J2Ar4rM", "szxK-5_eJjs-aUj-64MpUZ-GPPzGLhYPLGl0wrYjYNVAGva2P0lLe6UGKGM7k8dWxsOVGutZWgvmY3l5oVPO3w");
assertEquals(cipherExecutor.decode(cipherExecutor.encode("CAS Test")), "CAS Test");
}
Aggregations