All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nimbusds.openid.connect.provider.spi.claims.ClaimsSource Maven / Gradle / Ivy

Go to download

Toolkit for developing Connect2id Server extensions, such as custom OpenID Connect claims sources and grant handlers.

There is a newer version: 5.10
Show newest version
package com.nimbusds.openid.connect.provider.spi.claims;


import java.util.List;
import java.util.Set;

import com.nimbusds.langtag.LangTag;

import com.nimbusds.oauth2.sdk.id.Subject;
import com.nimbusds.openid.connect.sdk.claims.UserInfo;


/**
 * Service Provider Interface (SPI) for sourcing OpenID Connect UserInfo and
 * other claims about a subject (end-user). Implementations must be thread-
 * safe.
 *
 * 

Claims sources can be: * *

    *
  • LDAP directories *
  • SQL or NoSQL databases *
  • Web services *
  • Files *
*/ public interface ClaimsSource extends CommonClaimsSource { /** * Requests claims for the specified subject. * * @param subject The subject. Must not be {@code null}. * @param claims The names of the requested claims, with * optional language tags. Must not be * {@code null}. * @param claimsLocales The preferred languages and scripts for the * claims to return, {@code null} if not * specified. * * @return The claims, {@code null} if the subject wasn't found or the * claims source is {@link #isEnabled disabled}. * * @throws Exception If retrieval of the claims failed. */ UserInfo getClaims(final Subject subject, final Set claims, final List claimsLocales) throws Exception; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy