@Override
    public String getTenantKey(final TenantDefinition tenantDefinition) {
        return FunctionUtils.doUnchecked(() -> {
            val record = MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(tenantDefinition);
            return DigestUtils.sha512(record);
        });
    }
This is {@link DefaultTenantExtractor}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-multitenancy/src/main/java/org/apereo/cas/multitenancy/DefaultTenantExtractor.java