Class JwtClaims
java.lang.Object
org.apache.cxf.jaxrs.json.basic.JsonMapObject
org.apache.cxf.rs.security.jose.jwt.JwtClaims
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractUserInfo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a single audience value.Get an array of audiencesvoidsetAudience(String audience) Set a single audience value which will be serialized as a StringvoidsetAudiences(List<String> audiences) Set an array of audiencesvoidsetExpiryTime(Long expiresIn) voidsetIssuedAt(Long issuedAt) voidvoidsetNotBefore(Long notBefore) voidsetSubject(String subject) voidsetTokenId(String id) Methods inherited from class org.apache.cxf.jaxrs.json.basic.JsonMapObject
asMap, containsProperty, equals, getBooleanProperty, getIntegerProperty, getJsonMapProperty, getListMapProperty, getListStringProperty, getLongProperty, getMapProperty, getProperty, getStringProperty, getUpdateCount, hashCode, removeProperty, setProperty, size
-
Constructor Details
-
JwtClaims
public JwtClaims() -
JwtClaims
-
-
Method Details
-
setIssuer
-
getIssuer
-
setSubject
-
getSubject
-
setAudience
Set a single audience value which will be serialized as a String- Parameters:
audience- the audience
-
getAudience
Get a single audience value. If the audience claim value is an array then the first value will be returned.- Returns:
- the audience
-
setAudiences
Set an array of audiences- Parameters:
audiences- the audiences array
-
getAudiences
Get an array of audiences- Returns:
- the audiences array
-
setExpiryTime
-
getExpiryTime
-
setNotBefore
-
getNotBefore
-
setIssuedAt
-
getIssuedAt
-
setTokenId
-
getTokenId
-
setClaim
-
getClaim
-