Lines Matching defs:token
47 // token instance
48 final Token token;
53 P11KeyFactory(Token token, String algorithm) {
55 this.token = token;
60 * Convert an arbitrary key of algorithm into a P11Key of token.
63 static P11Key convertKey(Token token, Key key, String algorithm)
65 return (P11Key)token.getKeyFactory(algorithm).engineTranslateKey(key);
71 token.ensureValid();
85 // first translate into a key of this token, if it is not already
102 session[0] = token.releaseSession(session[0]);
108 token.ensureValid();
118 if (p11Key.token == token) {
119 // already a key of this token, no need to translate
123 P11Key p11Key = token.privateCache.get(key);
129 token.privateCache.put(key, (P11Key)publicKey);
133 token.privateCache.put(key, (P11Key)privateKey);