Package com.networknt.http.client.oauth
Class Jwt
- java.lang.Object
-
- com.networknt.http.client.oauth.Jwt
-
public class Jwt extends Object
a model class represents a JWT mostly for caching usage so that we don't need to decrypt jwt string to get info. it will load config from client.yml/oauth/token
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJwt.Keya inner model tight to Jwt, this key is to represent to a Jwt for caching or other usage for now it's only identified by scopes and serviceId.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longgetEarlyRefreshRetryDelay()longgetEarlyRetryTimeout()longgetExpire()static longgetExpiredRefreshRetryDelay()longgetExpiredRetryTimeout()StringgetJwt()Jwt.KeygetKey()Set<String>getScopes()static longgetTokenRenewBeforeExpired()booleanisRenewing()static voidsetEarlyRefreshRetryDelay(long earlyRefreshRetryDelay)voidsetEarlyRetryTimeout(long earlyRetryTimeout)voidsetExpire(long expire)static voidsetExpiredRefreshRetryDelay(long expiredRefreshRetryDelay)voidsetExpiredRetryTimeout(long expiredRetryTimeout)voidsetJwt(String jwt)voidsetRenewing(boolean renewing)voidsetScopes(String scopesStr)voidsetScopes(Set<String> scopes)static voidsetTokenRenewBeforeExpired(long tokenRenewBeforeExpired)
-
-
-
Constructor Detail
-
Jwt
public Jwt()
-
Jwt
public Jwt(Jwt.Key key)
-
-
Method Detail
-
getJwt
public String getJwt()
-
setJwt
public void setJwt(String jwt)
-
getExpire
public long getExpire()
-
setExpire
public void setExpire(long expire)
-
isRenewing
public boolean isRenewing()
-
setRenewing
public void setRenewing(boolean renewing)
-
getExpiredRetryTimeout
public long getExpiredRetryTimeout()
-
setExpiredRetryTimeout
public void setExpiredRetryTimeout(long expiredRetryTimeout)
-
getEarlyRetryTimeout
public long getEarlyRetryTimeout()
-
setEarlyRetryTimeout
public void setEarlyRetryTimeout(long earlyRetryTimeout)
-
getTokenRenewBeforeExpired
public static long getTokenRenewBeforeExpired()
-
setTokenRenewBeforeExpired
public static void setTokenRenewBeforeExpired(long tokenRenewBeforeExpired)
-
getExpiredRefreshRetryDelay
public static long getExpiredRefreshRetryDelay()
-
setExpiredRefreshRetryDelay
public static void setExpiredRefreshRetryDelay(long expiredRefreshRetryDelay)
-
getEarlyRefreshRetryDelay
public static long getEarlyRefreshRetryDelay()
-
setEarlyRefreshRetryDelay
public static void setEarlyRefreshRetryDelay(long earlyRefreshRetryDelay)
-
setScopes
public void setScopes(String scopesStr)
-
getKey
public Jwt.Key getKey()
-
-