@Override
    public CipherExecutor resolve(final String tenant) {
        if (StringUtils.isBlank(tenant)) {
            return cipherExecutor;
        }
        val tenantDefinition = tenantExtractor.getTenantsManager().findTenant(tenant).orElseThrow();
        return bindTenantToCipherExecutor(tenantDefinition);
    }
This is {@link DefaultCipherExecutorResolver}.

@author Misagh Moayyed
@since 7.3.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/DefaultCipherExecutorResolver.java