use of org.apereo.cas.util.cipher.ProtocolTicketCipherExecutor in project cas by apereo.
the class CasCoreTicketsConfiguration method protocolTicketCipherExecutor.
@RefreshScope
@Bean
@ConditionalOnMissingBean(name = "protocolTicketCipherExecutor")
public CipherExecutor protocolTicketCipherExecutor() {
final EncryptionJwtSigningJwtCryptographyProperties crypto = casProperties.getTicket().getCrypto();
if (crypto.isEnabled()) {
return new ProtocolTicketCipherExecutor(crypto.getEncryption().getKey(), crypto.getSigning().getKey(), crypto.getAlg());
}
LOGGER.debug("Protocol tickets generated by CAS are not signed/encrypted.");
return CipherExecutor.noOp();
}
Aggregations