|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oltu.commons.json.CustomizableBuilder<JWT> org.apache.oltu.oauth2.jwt.JWT.Builder
public static final class JWT.Builder
A simple JWT
builder.
Constructor Summary | |
---|---|
JWT.Builder()
|
|
JWT.Builder(String rawString)
|
Method Summary | |
---|---|
JWT |
build()
Creates a new JWT instance. |
JWT.Builder |
setClaimsSetAudience(String claimsSetAudience)
Sets the JWT Claims Set aud . |
JWT.Builder |
setClaimsSetCustomField(String key,
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(String claimsSetIssuer)
Sets the JWT Claims Set iss . |
JWT.Builder |
setClaimsSetJwdId(String claimsSetJwdId)
Sets the JWT Claims Set jti . |
JWT.Builder |
setClaimsSetNotBefore(String claimsSetNotBefore)
Sets the JWT Claims Set nbf . |
JWT.Builder |
setClaimsSetSubject(String claimsSetSubject)
Sets the JWT Claims Set sub . |
JWT.Builder |
setClaimsSetType(String claimsSetType)
Sets the JWT Claims Set typ . |
JWT.Builder |
setHeaderAlgorithm(String headerAlgorithm)
Sets the JWT Header alg . |
JWT.Builder |
setHeaderContentType(String headerContentType)
Sets the JWT Header cty . |
JWT.Builder |
setHeaderCustomField(String key,
Object value)
Set the JWT Header custom field. |
JWT.Builder |
setHeaderType(String headerType)
Sets the JWT Header typ . |
JWT.Builder |
setSignature(String signature)
Sets the JWT signature. |
Methods inherited from class org.apache.oltu.commons.json.CustomizableBuilder |
---|
getCustomFields, setCustomField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JWT.Builder()
public JWT.Builder(String rawString)
Method Detail |
---|
public JWT.Builder setHeaderType(String headerType)
typ
.
headerType
- the JWT Header typ
.
public JWT.Builder setHeaderAlgorithm(String headerAlgorithm)
alg
.
headerAlgorithm
- the JWT Header alg
.
public JWT.Builder setHeaderContentType(String headerContentType)
cty
.
headerContentType
- the JWT Header cty
.
public JWT.Builder setHeaderCustomField(String key, Object value)
key
- the custom field name.value
- value the custom field value.
public JWT.Builder setClaimsSetIssuer(String claimsSetIssuer)
iss
.
claimsSetIssuer
- the JWT Claims Set iss
.
public JWT.Builder setClaimsSetSubject(String claimsSetSubject)
sub
.
claimsSetSubject
- the JWT Claims Set sub
.
public JWT.Builder setClaimsSetAudience(String claimsSetAudience)
aud
.
claimsSetAudience
- the JWT Claims Set aud
.
public JWT.Builder setClaimsSetExpirationTime(long claimsSetExpirationTime)
exp
.
claimsSetExpirationTime
- the JWT Claims Set exp
.
public JWT.Builder setClaimsSetNotBefore(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(String claimsSetJwdId)
jti
.
claimsSetJwdId
- the JWT Claims Set jti
.
public JWT.Builder setClaimsSetType(String claimsSetType)
typ
.
claimsSetType
- the JWT Claims Set typ
.
public JWT.Builder setClaimsSetCustomField(String key, Object value)
key
- the custom field name.value
- value the custom field value.
public JWT.Builder setSignature(String signature)
signature
-
public JWT build()
JWT
instance.
build
in class org.apache.oltu.commons.json.CustomizableBuilder<JWT>
JWT
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |