001package com.nimbusds.openid.connect.provider.spi.grants; 002 003import com.nimbusds.oauth2.sdk.Scope; 004import com.nimbusds.openid.connect.provider.spi.InvocationContext; 005import org.checkerframework.checker.nullness.qual.Nullable; 006 007import java.util.Set; 008 009 010/** 011 * OAuth 2.0 authorisation grant handler context. 012 */ 013public interface GrantHandlerContext extends InvocationContext { 014 015 016 /** 017 * Resolves the claim names for all scope values that expand to claims. 018 * Recognises all standard OpenID Connect scope values as well as any 019 * custom mappings configured in the Connect2id server. 020 * 021 * @param scope The scope, {@code null} if not specified. 022 * 023 * @return The resolved claim names, as an unmodifiable set, empty set 024 * if none. 025 */ 026 Set<String> resolveClaimNames(final @Nullable Scope scope); 027}