protected Map collectAndDigestTicketAttributes(final Ticket ticket) {
        val currentAttributes = getCombinedTicketAttributes(ticket);
        if (isCipherExecutorEnabled()) {
            val encodedAttributes = new HashMap<String, Object>(currentAttributes.size());
            currentAttributes.forEach((key, value) -> {
                val allValues = digestIdentifier(value);
                if (!allValues.isEmpty()) {
                    encodedAttributes.put(digestIdentifier(key), allValues);
                }
            });
            return encodedAttributes;
        }
        return currentAttributes;
    }
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