Package org.jboss.resteasy.jwt
Class JsonWebToken
java.lang.Object
org.jboss.resteasy.jwt.JsonWebToken
- All Implemented Interfaces:
 Serializable
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 - See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
id
 - 
expiration
protected long expiration - 
notBefore
protected long notBefore - 
issuedAt
protected long issuedAt - 
issuer
 - 
audience
 - 
principal
 - 
type
 
 - 
 - 
Constructor Details
- 
JsonWebToken
public JsonWebToken() 
 - 
 - 
Method Details
- 
getId
 - 
id
 - 
getExpiration
public long getExpiration() - 
expiration
 - 
isExpired
public boolean isExpired() - 
getNotBefore
public long getNotBefore() - 
notBefore
 - 
isNotBefore
public boolean isNotBefore() - 
isActive
public boolean isActive()Tests that the token is not expired and is not-before.- Returns:
 - true if the token is not expired and is not-before
 
 - 
getIssuedAt
public long getIssuedAt() - 
issuedNow
Set issuedAt to the current time.- Returns:
 JsonWebToken
 - 
issuedAt
 - 
getIssuer
 - 
issuer
 - 
getAudience
 - 
audience
 - 
getPrincipal
 - 
principal
 - 
getType
 - 
type
 
 -