core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/support/Beans.java
/**
     * New ticket registry cipher executor cipher executor.
     *
     * @param registry the registry
     * @return the cipher executor
     */
New ticket registry cipher executor cipher executor.
@param registry the registry
@return the cipher executor
New ticket registry cipher executor cipher executor . @param registry the registry @return the cipher executor
public static CipherExecutor newTicketRegistryCipherExecutor(final CryptographyProperties registry) {
        if (StringUtils.isNotBlank(registry.getEncryption().getKey())
                && StringUtils.isNotBlank(registry.getEncryption().getKey())) {
            return new DefaultTicketCipherExecutor(
                    registry.getEncryption().getKey(),
                    registry.getSigning().getKey(),
                    registry.getAlg(),
                    registry.getSigning().getKeySize(),
                    registry.getEncryption().getKeySize());
        }
        LOGGER.info("Ticket registry encryption/signing is turned off. This MAY NOT be safe in a "
                + "clustered production environment. "
                + "Consider using other choices to handle encryption, signing and verification of "
                + "ticket registry tickets, and verify the chosen ticket registry does support this behavior.");
        return new NoOpCipherExecutor();
    }
public static CipherExecutor newTicketRegistryCipherExecutor ( final CryptographyProperties registry ) { if ( StringUtils . isNotBlank ( registry . getEncryption ( ) . getKey ( ) ) && StringUtils . isNotBlank ( registry . getEncryption ( ) . getKey ( ) ) ) { return new DefaultTicketCipherExecutor ( registry . getEncryption ( ) . getKey ( ) , registry . getSigning ( ) . getKey ( ) , registry . getAlg ( ) , registry . getSigning ( ) . getKeySize ( ) , registry . getEncryption ( ) . getKeySize ( ) ) ; } LOGGER . info ( "Ticket registry encryption/signing is turned off. This MAY NOT be safe in a " + "clustered production environment. " + "Consider using other choices to handle encryption, signing and verification of " + "ticket registry tickets, and verify the chosen ticket registry does support this behavior." ) ; return new NoOpCipherExecutor ( ) ; }
New ticket registry cipher executor cipher executor.
New ticket registry cipher executor cipher executor .