Enum ClientAssertionType

    • Enum Constant Detail

      • JWT_BEARER

        public static final ClientAssertionType JWT_BEARER
        "urn:ietf:params:oauth:client-assertion-type:jwt-bearer".

        The client assertion type used by the client_secret_jwt client authentication method and the private_key_jwt client authentication method.

      • JWT_CLIENT_ATTESTATION

        public static final ClientAssertionType JWT_CLIENT_ATTESTATION
        Deprecated.
        "urn:ietf:params:oauth:client-assertion-type:jwt-client-attestation".

        The client assertion type used by the attest_jwt_client_auth client authentication method.

        The draft 03 of "OAuth 2.0 Attestation-Based Client Authentication" has deprecated the usage of the client_assertion parameter and the client_assertion_type parameter, and introduced another different way to specify a pair of a client attestation and a client attestation PoP. Consequently, this enum entry is no longer used.

        See Also:
        OAuth 2.0 Attestation-Based Client Authentication
    • Method Detail

      • values

        public static ClientAssertionType[] 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 (ClientAssertionType c : ClientAssertionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClientAssertionType 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
      • getValue

        public short getValue()
        Get the integer representation of this enum instance.
      • getByValue

        public static ClientAssertionType getByValue​(short value)
        Find an instance of this enum by a value.
        Parameters:
        value - The integer representation of the instance to find.
        Returns:
        An instance of this enum, or null if not found.
      • parse

        public static ClientAssertionType parse​(String type)
        Convert String to ClientAssertionType.
        Parameters:
        type - A client assertion type. For example, "urn:ietf:params:oauth:client-assertion-type:jwt-bearer".
        Returns:
        ClientAssertionType instance, or null.