Algorithm
Last updated
Last updated
The Algorithm
builder facilitates the creation of algorithm objects used for signing or verifying JWT tokens. It provides flexibility in configuring token headers, such as including a key identifier.
The kid(kid)
method allows setting a key identifier, which will be included in the token header. The method takes a string representing the private key identifier as its parameter and returns the algorithm builder to enable method chaining.
The key identifier, will be added to the token header.
The key identifier, will be added to the token header.
Parameters
String kid the private key identifier
Returns: Algorithm the algorithm builder for method chaining