public class JsonWebToken extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
audience |
protected long |
expiration |
protected String |
id |
protected long |
issuedAt |
protected String |
issuer |
protected long |
notBefore |
protected String |
principal |
protected String |
type |
Constructor and Description |
---|
JsonWebToken() |
Modifier and Type | Method and Description |
---|---|
JsonWebToken |
audience(String audience) |
JsonWebToken |
expiration(long expiration) |
String |
getAudience() |
long |
getExpiration() |
String |
getId() |
long |
getIssuedAt() |
String |
getIssuer() |
long |
getNotBefore() |
String |
getPrincipal() |
String |
getType() |
JsonWebToken |
id(String id) |
boolean |
isActive()
Tests that the token is not expired and is not-before.
|
boolean |
isExpired() |
boolean |
isNotBefore() |
JsonWebToken |
issuedAt(long issuedAt) |
JsonWebToken |
issuedNow()
Set issuedAt to the current time
|
JsonWebToken |
issuer(String issuer) |
JsonWebToken |
notBefore(long notBefore) |
JsonWebToken |
principal(String principal) |
JsonWebToken |
type(String type) |
protected String id
protected long expiration
protected long notBefore
protected long issuedAt
protected String issuer
protected String audience
protected String principal
protected String type
public String getId()
public JsonWebToken id(String id)
public long getExpiration()
public JsonWebToken expiration(long expiration)
public boolean isExpired()
public long getNotBefore()
public JsonWebToken notBefore(long notBefore)
public boolean isNotBefore()
public boolean isActive()
public long getIssuedAt()
public JsonWebToken issuedNow()
public JsonWebToken issuedAt(long issuedAt)
public String getIssuer()
public JsonWebToken issuer(String issuer)
public String getAudience()
public JsonWebToken audience(String audience)
public String getPrincipal()
public JsonWebToken principal(String principal)
public String getType()
public JsonWebToken type(String type)
Copyright © 2015 JBoss by Red Hat. All rights reserved.