Class OidcProfileCreator

java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.profile.definition.ProfileDefinitionAware
org.pac4j.oidc.profile.creator.OidcProfileCreator
All Implemented Interfaces:
org.pac4j.core.profile.creator.ProfileCreator
Direct Known Subclasses:
AzureAdProfileCreator

public class OidcProfileCreator extends org.pac4j.core.profile.definition.ProfileDefinitionAware implements org.pac4j.core.profile.creator.ProfileCreator
OpenID Connect profile creator.
Since:
1.9.2
Author:
Jerome Leleu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected OidcClient
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for OidcProfileCreator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callUserInfoEndpoint(URI userInfoEndpointUri, com.nimbusds.oauth2.sdk.token.AccessToken accessToken, org.pac4j.core.profile.UserProfile profile)
     
    Optional<org.pac4j.core.profile.UserProfile>
    create(org.pac4j.core.context.CallContext ctx, org.pac4j.core.credentials.Credentials credentials)
    protected void
    internalInit(boolean forceReinit)

    Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinitionAware

    getProfileDefinition, setProfileDefinition, setProfileDefinitionIfUndefined

    Methods inherited from class org.pac4j.core.util.InitializableObject

    afterInternalInit, beforeInternalInit, getInitialized, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • internalInit

      protected void internalInit(boolean forceReinit)
      Specified by:
      internalInit in class org.pac4j.core.util.InitializableObject
    • create

      public Optional<org.pac4j.core.profile.UserProfile> create(org.pac4j.core.context.CallContext ctx, org.pac4j.core.credentials.Credentials credentials)
      Specified by:
      create in interface org.pac4j.core.profile.creator.ProfileCreator
    • callUserInfoEndpoint

      public void callUserInfoEndpoint(URI userInfoEndpointUri, com.nimbusds.oauth2.sdk.token.AccessToken accessToken, org.pac4j.core.profile.UserProfile profile) throws IOException, com.nimbusds.oauth2.sdk.ParseException, ParseException, UserInfoErrorResponseException
      Throws:
      IOException
      com.nimbusds.oauth2.sdk.ParseException
      ParseException
      UserInfoErrorResponseException