@Test
    void verifyActionOneWay() {
        val secretKeyEncryption = "classpath:keys/RSA2048Public.key";
        val secretKeySigning = "classpath:keys/RSA2048Private.key";
        val cipher1 = new TicketGrantingCookieCipherExecutor(secretKeyEncryption, secretKeySigning, 0, 0);
        cipher1.setSigningAlgorithm(AlgorithmIdentifiers.RSA_USING_SHA256);
        assertNotNull(cipher1.encode("TestValue"));

        val cipher = new ProtocolTicketCipherExecutor(secretKeyEncryption, secretKeySigning, 0, 0);
        cipher.setSigningAlgorithm(AlgorithmIdentifiers.RSA_USING_SHA384);
        assertNotNull(cipher.encode("TestValue"));
    }
This is {@link RsaKeyPairCipherExecutorTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-util/src/test/java/org/apereo/cas/util/cipher/RsaKeyPairCipherExecutorTests.java