本文整理汇总了Java中securesocial.core.java.Token类的典型用法代码示例。如果您正苦于以下问题:Java Token类的具体用法?Java Token怎么用?Java Token使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Token类属于securesocial.core.java包,在下文中一共展示了Token类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doDeleteExpiredTokens
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public void doDeleteExpiredTokens() {
Iterator<Map.Entry<String,Token>> iterator = tokens.entrySet().iterator();
while ( iterator.hasNext() ) {
Map.Entry<String, Token> entry = iterator.next();
if ( entry.getValue().isExpired() ) {
iterator.remove();
}
}
}
示例2: doDeleteExpiredTokens
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public void doDeleteExpiredTokens() {
Iterator<Map.Entry<String,Token>> iterator = tokens.entrySet().iterator();
while ( iterator.hasNext() ) {
Map.Entry<String, Token> entry = iterator.next();
if ( entry.getValue().isExpired() ) {
iterator.remove();
}
}
}
示例3: doDeleteExpiredTokens
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public void doDeleteExpiredTokens() {
Iterator<Map.Entry<String,Token>> iterator = tokens.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry<String,Token> entry = iterator.next();
if (entry.getValue().isExpired()) {
iterator.remove();
}
}
}
示例4: doSaveToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doSaveToken(Token token) {
tokens.put(token.uuid, token);
return F.Promise.pure(token);
}
示例5: doFindToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doFindToken(String tokenId) {
return F.Promise.pure(tokens.get(tokenId));
}
示例6: doDeleteToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doDeleteToken(String uuid) {
return F.Promise.pure(tokens.remove(uuid));
}
示例7: doSaveToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doSaveToken(Token token) {
tokens.put(token.uuid, token);
return F.Promise.pure(token);
}
示例8: doFindToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doFindToken(String tokenId) {
return F.Promise.pure(tokens.get(tokenId));
}
示例9: doDeleteToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doDeleteToken(String uuid) {
return F.Promise.pure(tokens.remove(uuid));
}
示例10: doSave
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public void doSave(Token token) {
tokens.put(token.uuid, token);
}
示例11: doFindToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public Token doFindToken(String tokenId) {
return tokens.get(tokenId);
}
示例12: doSaveToken
import securesocial.core.java.Token; //导入依赖的package包/类
@Override
public F.Promise<Token> doSaveToken(Token token) {
tokens.put(token.uuid,token);
return F.Promise.pure(token);
}