Package org.apache.oltu.oauth2.jwt
Class ClaimsSet
- java.lang.Object
-
- org.apache.oltu.commons.json.CustomizableEntity
-
- org.apache.oltu.oauth2.jwt.ClaimsSet
-
public final class ClaimsSet extends CustomizableEntity
Represents the Claims Set as defined in the 6.1 section of the JWT specification.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAudience()
Returns the first audience of theaud
JWT Claims Set parameter.java.util.List<java.lang.String>
getAudiences()
Returns theaud
JWT Claims Set parameter.long
getExpirationTime()
Returns theexp
JWT Claims Set parameter.long
getIssuedAt()
Returns theiat
JWT Claims Set parameter.java.lang.String
getIssuer()
Returns theiss
JWT Claims Set parameter.java.lang.String
getJwdId()
Returns thejti
JWT Claims Set parameter.java.lang.String
getNotBefore()
Returns thenbf
JWT Claims Set parameter.java.lang.String
getSubject()
Returns thesub
JWT Claims Set parameter.java.lang.String
getType()
Returns thetyp
JWT Claims Set parameter.java.lang.String
toString()
-
Methods inherited from class org.apache.oltu.commons.json.CustomizableEntity
getCustomField, getCustomFields
-
-
-
-
Method Detail
-
getIssuer
public java.lang.String getIssuer()
Returns theiss
JWT Claims Set parameter.- Returns:
- the
iss
JWT Claims Set parameter.
-
getSubject
public java.lang.String getSubject()
Returns thesub
JWT Claims Set parameter.- Returns:
- the
sub
JWT Claims Set parameter.
-
getAudience
public java.lang.String getAudience()
Returns the first audience of theaud
JWT Claims Set parameter.There may be more than one audience listed.
- Returns:
- the
aud
JWT Claims Set parameter. - See Also:
getAudiences()
-
getAudiences
public java.util.List<java.lang.String> getAudiences()
Returns theaud
JWT Claims Set parameter.- Returns:
- the
aud
JWT Claims Set parameter.
-
getExpirationTime
public long getExpirationTime()
Returns theexp
JWT Claims Set parameter.- Returns:
- the
exp
JWT Claims Set parameter.
-
getNotBefore
public java.lang.String getNotBefore()
Returns thenbf
JWT Claims Set parameter.- Returns:
- the
nbf
JWT Claims Set parameter.
-
getIssuedAt
public long getIssuedAt()
Returns theiat
JWT Claims Set parameter.- Returns:
- the
iat
JWT Claims Set parameter.
-
getJwdId
public java.lang.String getJwdId()
Returns thejti
JWT Claims Set parameter.- Returns:
- the
jti
JWT Claims Set parameter.
-
getType
public java.lang.String getType()
Returns thetyp
JWT Claims Set parameter.- Returns:
- the
typ
JWT Claims Set parameter.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCustomizableEntity
-
-