public static final class JWT.Builder extends CustomizableBuilder<JWT>
JWT builder.| Constructor and Description |
|---|
Builder() |
Builder(java.lang.String rawString) |
| Modifier and Type | Method and Description |
|---|---|
JWT |
build()
Creates a new
JWT instance. |
JWT.Builder |
setClaimsSetAudience(java.lang.String claimsSetAudience)
Sets the JWT Claims Set
aud for a single audience. |
JWT.Builder |
setClaimsSetAudiences(java.util.List<java.lang.String> claimsSetAudiences)
Sets the JWT Claims Set
aud. |
JWT.Builder |
setClaimsSetCustomField(java.lang.String key,
java.lang.Object value)
Set the JWT Claims Set custom field.
|
JWT.Builder |
setClaimsSetExpirationTime(long claimsSetExpirationTime)
Sets the JWT Claims Set
exp. |
JWT.Builder |
setClaimsSetIssuedAt(long claimsSetIssuedAt)
Sets the JWT Claims Set
issuedAt. |
JWT.Builder |
setClaimsSetIssuer(java.lang.String claimsSetIssuer)
Sets the JWT Claims Set
iss. |
JWT.Builder |
setClaimsSetJwdId(java.lang.String claimsSetJwdId)
Sets the JWT Claims Set
jti. |
JWT.Builder |
setClaimsSetNotBefore(java.lang.String claimsSetNotBefore)
Sets the JWT Claims Set
nbf. |
JWT.Builder |
setClaimsSetSubject(java.lang.String claimsSetSubject)
Sets the JWT Claims Set
sub. |
JWT.Builder |
setClaimsSetType(java.lang.String claimsSetType)
Sets the JWT Claims Set
typ. |
JWT.Builder |
setHeaderAlgorithm(java.lang.String headerAlgorithm)
Sets the JWT Header
alg. |
JWT.Builder |
setHeaderContentType(java.lang.String headerContentType)
Sets the JWT Header
cty. |
JWT.Builder |
setHeaderCustomField(java.lang.String key,
java.lang.Object value)
Set the JWT Header custom field.
|
JWT.Builder |
setHeaderType(java.lang.String headerType)
Sets the JWT Header
typ. |
JWT.Builder |
setSignature(java.lang.String signature)
Sets the JWT signature.
|
setCustomFieldpublic JWT.Builder setHeaderType(java.lang.String headerType)
typ.headerType - the JWT Header typ.public JWT.Builder setHeaderAlgorithm(java.lang.String headerAlgorithm)
alg.headerAlgorithm - the JWT Header alg.public JWT.Builder setHeaderContentType(java.lang.String headerContentType)
cty.headerContentType - the JWT Header cty.public JWT.Builder setHeaderCustomField(java.lang.String key, java.lang.Object value)
key - the custom field name.value - value the custom field value.public JWT.Builder setClaimsSetIssuer(java.lang.String claimsSetIssuer)
iss.claimsSetIssuer - the JWT Claims Set iss.public JWT.Builder setClaimsSetSubject(java.lang.String claimsSetSubject)
sub.claimsSetSubject - the JWT Claims Set sub.public JWT.Builder setClaimsSetAudience(java.lang.String claimsSetAudience)
aud for a single audience.claimsSetAudience - the JWT Claims Set aud.public JWT.Builder setClaimsSetAudiences(java.util.List<java.lang.String> claimsSetAudiences)
aud.claimsSetAudiences - the JWT Claims Set aud.public JWT.Builder setClaimsSetExpirationTime(long claimsSetExpirationTime)
exp.claimsSetExpirationTime - the JWT Claims Set exp.public JWT.Builder setClaimsSetNotBefore(java.lang.String claimsSetNotBefore)
nbf.claimsSetNotBefore - the JWT Claims Set nbf.public JWT.Builder setClaimsSetIssuedAt(long claimsSetIssuedAt)
issuedAt.claimsSetIssuedAt - the JWT Claims Set issuedAt.public JWT.Builder setClaimsSetJwdId(java.lang.String claimsSetJwdId)
jti.claimsSetJwdId - the JWT Claims Set jti.public JWT.Builder setClaimsSetType(java.lang.String claimsSetType)
typ.claimsSetType - the JWT Claims Set typ.public JWT.Builder setClaimsSetCustomField(java.lang.String key, java.lang.Object value)
key - the custom field name.value - value the custom field value.public JWT.Builder setSignature(java.lang.String signature)
signature - Copyright © 2010 - 2023 Adobe. All Rights Reserved