Lines Matching defs:token
41 * PKCS#11 token.
51 // how often to check if the token is still present (in ms)
52 // this is different from checking if a token has been inserted,
71 // we started on the token. If false, we assume operations are
88 // single SecureRandomSpi instance we use per token
96 // whether this token is a removable token
99 // for removable tokens: whether this token is valid or has been removed
102 // for removable tokens: time last checked for token presence
105 // unique token id, used for serialization only
108 // flag indicating whether the token is write protected
117 // mutex for token-present-check
142 // token might not permit RW sessions even though
203 // return whether this token object is valid (i.e. token not removed)
218 // return whether a token is present (i.e. token not removed)
233 // check if token still present
237 // if the token has been removed and re-inserted,
238 // the token should return an error
389 // serialized representation of a token
391 // and if the token has not been removed in the meantime
398 TokenRep(Token token) {
399 tokenId = token.getTokenId();
404 Token token = tokenRef.get();
405 if ((token != null) && token.isValid()) {
406 if (Arrays.equals(token.getTokenId(), tokenId)) {
407 return token;
411 throw new NotSerializableException("Could not find token");