public JwtTicketCipherExecutor getTokenTicketCipherExecutorForService(final RegisteredService registeredService) {
        val encryptionKey = getEncryptionKey(registeredService).orElse(StringUtils.EMPTY);
        val signingKey = getSigningKey(registeredService).orElse(StringUtils.EMPTY);
        val cipher = createCipherExecutorInstance(encryptionKey, signingKey, registeredService);
        val order = getCipherOperationsStrategyType(registeredService).orElse(CipherOperationsStrategyType.ENCRYPT_AND_SIGN);
        cipher.setStrategyType(order);
        cipher.setSigningEnabled(isSigningEnabledForRegisteredService(registeredService));
        cipher.setEncryptionEnabled(isEncryptionEnabledForRegisteredService(registeredService));
        return cipher;
    }
Gets token ticket cipher executor for service.

@param registeredService the registered service
@return the token ticket cipher executor for service
support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java