Package web5.sdk.jose.jws
Class JwsHeader.Builder
-
- All Implemented Interfaces:
public final class JwsHeader.BuilderBuilder for JwsHeader.
-
-
Constructor Summary
Constructors Constructor Description JwsHeader.Builder()
-
Method Summary
Modifier and Type Method Description final JwsHeader.Buildertype(String typ)Sets the typ field of the JWS header. final JwsHeader.Builderalgorithm(String alg)Sets the alg field of the JWS header. final JwsHeader.BuilderkeyId(String kid)Sets the kid field of the JWS header. final JwsHeaderbuild()Builds the JwsHeader object. -
-
Method Detail
-
type
final JwsHeader.Builder type(String typ)
Sets the typ field of the JWS header.
- Parameters:
typ- The type of the JWS- Returns:
Builder object
-
algorithm
final JwsHeader.Builder algorithm(String alg)
Sets the alg field of the JWS header.
- Parameters:
alg- The algorithm used to sign the JWS- Returns:
Builder object
-
keyId
final JwsHeader.Builder keyId(String kid)
Sets the kid field of the JWS header.
- Parameters:
kid- The key ID used to sign the JWS- Returns:
Builder object
-
-
-
-