72 StringBuilder builder =
new StringBuilder(
"{");
73 builder.append(
"\"alg\":\"").append(sigAlgName).append(
"\"");
75 if (
type != null) builder.append(
",\"typ\" : \"").append(
type).append(
"\"");
76 if (
kid != null) builder.append(
",\"kid\" : \"").append(
kid).append(
"\"");
80 return Base64Url.encode(builder.toString().getBytes(
"UTF-8"));
81 }
catch (UnsupportedEncodingException e) {
82 throw new RuntimeException(e);
String type
Definition: JWSBuilder.java:36
String kid
Definition: JWSBuilder.java:37
String contentType
Definition: JWSBuilder.java:38