Class OAuth2ClientContext

  • All Implemented Interfaces:
    Iterable<BaseContext>

    public class OAuth2ClientContext
    extends BaseContext
    A context to store information pertaining to the OAuth2 client (Relying Party) to use in communication with a OpenID Provider.

    Typically a subcontext under OIDCPeerEntityContext, as it relates to the client associated pairwise with the upstream OP peer.

    Parent:
    OIDCPeerEntityContext
    Added:
    During an OAuth 2.0 authentication request attempt
    • Field Detail

      • clientId

        @Nullable
        private String clientId
        The client_id.
      • redirectUriOverride

        @Nullable
        private URI redirectUriOverride
        An redirect URI that should take preference over any automatically computed.
    • Constructor Detail

      • OAuth2ClientContext

        public OAuth2ClientContext()
    • Method Detail

      • setRedirectUriOverride

        public OAuth2ClientContext setRedirectUriOverride​(@Nullable
                                                          URI override)
        Set the redirect_uri to use in place of any other.
        Parameters:
        override - the redirect_uri
        Returns:
        this
      • getRedirectUriOverride

        public URI getRedirectUriOverride()
        Get the redirect_uri which should be used in place of any other.
        Returns:
        the redirect_uri
      • getClientId

        public String getClientId()
        Get the client_id.
        Returns:
        the client_id