@Override
    public BaseOidcScopeAttributeReleasePolicy get(final OidcConstants.StandardScopes scope) {
        return switch (scope) {
            case EMAIL -> new OidcEmailScopeAttributeReleasePolicy();
            case ADDRESS -> new OidcAddressScopeAttributeReleasePolicy();
            case OPENID, DEVICE_SSO -> new OidcOpenIdScopeAttributeReleasePolicy();
            case PHONE -> new OidcPhoneScopeAttributeReleasePolicy();
            case PROFILE -> new OidcProfileScopeAttributeReleasePolicy();
            case ASSURANCE -> new OidcAssuranceScopeAttributeReleasePolicy();
            case OFFLINE_ACCESS -> new OidcOfflineAccessScopeAttributeReleasePolicy();
        };
    }
This is {@link DefaultOidcAttributeReleasePolicyFactory}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/scopes/DefaultOidcAttributeReleasePolicyFactory.java