Enum OidcClientConfig.Grant.Type

    • Enum Constant Detail

      • CLIENT

        public static final OidcClientConfig.Grant.Type CLIENT
        'client_credentials' grant requiring an OIDC client authentication only
      • PASSWORD

        public static final OidcClientConfig.Grant.Type PASSWORD
        'password' grant requiring both OIDC client and user ('username' and 'password') authentications
      • CODE

        public static final OidcClientConfig.Grant.Type CODE
        'authorization_code' grant requiring an OIDC client authentication as well as at least 'code' and 'redirect_uri' parameters which must be passed to OidcClient at the token request time.
      • EXCHANGE

        public static final OidcClientConfig.Grant.Type EXCHANGE
        'urn:ietf:params:oauth:grant-type:token-exchange' grant requiring an OIDC client authentication as well as at least 'subject_token' parameter which must be passed to OidcClient at the token request time.
      • REFRESH

        public static final OidcClientConfig.Grant.Type REFRESH
        'refresh_token' grant requiring an OIDC client authentication and a refresh token. Note, OidcClient supports this grant by default if an access token acquisition response contained a refresh token. However, in some cases, the refresh token is provided out of band, for example, it can be shared between several of the confidential client's services, etc. If 'quarkus.oidc-client.grant-type' is set to 'refresh' then `OidcClient` will only support refreshing the tokens.
    • Method Detail

      • values

        public static OidcClientConfig.Grant.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OidcClientConfig.Grant.Type c : OidcClientConfig.Grant.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OidcClientConfig.Grant.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getGrantType

        public String getGrantType()