mitreid-connect
変数 | 非公開メンバ関数 | 全メンバ一覧
org.mitre.oauth2.introspectingfilter.IntrospectingTokenService.TokenCacheObject クラス
org.mitre.oauth2.introspectingfilter.IntrospectingTokenService.TokenCacheObject 連携図
Collaboration graph

変数

OAuth2AccessToken token
 
OAuth2Authentication auth
 
Date cacheExpire
 

非公開メンバ関数

 TokenCacheObject (OAuth2AccessToken token, OAuth2Authentication auth)
 

詳解

構築子と解体子

◆ TokenCacheObject()

org.mitre.oauth2.introspectingfilter.IntrospectingTokenService.TokenCacheObject.TokenCacheObject ( OAuth2AccessToken  token,
OAuth2Authentication  auth 
)
inlineprivate
93  {
94  this.token = token;
95  this.auth = auth;
96 
97  // we don't need to check the cacheTokens values, because this won't actually be added to the cache if cacheTokens is false
98  // if the token isn't null we use the token expire time
99  // if forceCacheExpireTime is also true, we also make sure that the token expire time is shorter than the default expire time
100  if ((this.token.getExpiration() != null) && (!forceCacheExpireTime || (forceCacheExpireTime && (this.token.getExpiration().getTime() - System.currentTimeMillis() <= defaultExpireTime)))) {
101  this.cacheExpire = this.token.getExpiration();
102  } else { // if the token doesn't have an expire time, or if the using forceCacheExpireTime the token expire time is longer than the default, then use the default expire time
103  Calendar cal = Calendar.getInstance();
104  cal.add(Calendar.MILLISECOND, defaultExpireTime);
105  this.cacheExpire = cal.getTime();
106  }
107  }
OAuth2Authentication auth
Definition: IntrospectingTokenService.java:90
int defaultExpireTime
Definition: IntrospectingTokenService.java:72
boolean forceCacheExpireTime
Definition: IntrospectingTokenService.java:73
OAuth2AccessToken token
Definition: IntrospectingTokenService.java:89
Date cacheExpire
Definition: IntrospectingTokenService.java:91

メンバ詳解

◆ auth

OAuth2Authentication org.mitre.oauth2.introspectingfilter.IntrospectingTokenService.TokenCacheObject.auth
package

◆ cacheExpire

Date org.mitre.oauth2.introspectingfilter.IntrospectingTokenService.TokenCacheObject.cacheExpire
package

◆ token

OAuth2AccessToken org.mitre.oauth2.introspectingfilter.IntrospectingTokenService.TokenCacheObject.token
package

このクラス詳解は次のファイルから抽出されました: