@Override
    public String digestIdentifier(final String identifier) {
        if (StringUtils.isBlank(identifier)) {
            return identifier;
        }
        if (!isCipherExecutorEnabled()) {
            LOGGER.trace(TICKET_ENCRYPTION_LOG_MESSAGE);
            return identifier;
        }
        val encodedId = DigestUtils.sha512(identifier);
        LOGGER.debug("Digested original ticket id [{}] to [{}]", identifier, encodedId);
        return encodedId;
    }
Base ticket registry class that implements common ticket-related ops.

@author Scott Battaglia
@since 3.0.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/registry/AbstractTicketRegistry.java