Lines Matching refs:session

89     // phantom reference notification clean up for session keys
92 P11Key(String type, Session session, long keyID, String algorithm,
95 this.token = session.token;
117 sessionKeyRef = new SessionKeyRef(this, keyID, session);
206 + (tokenObject ? "token" : "session") + " object";
250 private static CK_ATTRIBUTE[] getAttributes(Session session, long keyID,
272 session.token.p11.C_GetAttributeValue
273 (session.id(), keyID, desiredAttributes);
283 static SecretKey secretKey(Session session, long keyID, String algorithm,
285 attributes = getAttributes(session, keyID, attributes, new CK_ATTRIBUTE[] {
290 return new P11SecretKey(session, keyID, algorithm, keyLength, attributes);
293 static SecretKey masterSecretKey(Session session, long keyID, String algorithm,
295 attributes = getAttributes(session, keyID, attributes, new CK_ATTRIBUTE[] {
301 (session, keyID, algorithm, keyLength, attributes, major, minor);
305 static PublicKey publicKey(Session session, long keyID, String algorithm,
309 (session, keyID, algorithm, keyLength, attributes);
312 (session, keyID, algorithm, keyLength, attributes);
315 (session, keyID, algorithm, keyLength, attributes);
318 (session, keyID, algorithm, keyLength, attributes);
325 static PrivateKey privateKey(Session session, long keyID, String algorithm,
327 attributes = getAttributes(session, keyID, attributes, new CK_ATTRIBUTE[] {
334 (session, keyID, algorithm, keyLength, attributes);
346 session.token.p11.C_GetAttributeValue
347 (session.id(), keyID, attrs2);
355 (session, keyID, algorithm, keyLength, attributes);
358 (session, keyID, algorithm, keyLength, attributes);
362 (session, keyID, algorithm, keyLength, attributes);
365 (session, keyID, algorithm, keyLength, attributes);
368 (session, keyID, algorithm, keyLength, attributes);
379 P11PrivateKey(Session session, long keyID, String algorithm,
381 super(PRIVATE, session, keyID, algorithm, keyLength, attributes);
396 P11SecretKey(Session session, long keyID, String algorithm,
398 super(SECRET, session, keyID, algorithm, keyLength, attributes);
443 P11TlsMasterSecretKey(Session session, long keyID, String algorithm,
445 super(session, keyID, algorithm, keyLength, attributes);
463 P11RSAPrivateKey(Session session, long keyID, String algorithm,
465 super(PRIVATE, session, keyID, algorithm, keyLength, attributes);
573 P11RSAPrivateNonCRTKey(Session session, long keyID, String algorithm,
575 super(PRIVATE, session, keyID, algorithm, keyLength, attributes);
634 P11RSAPublicKey(Session session, long keyID, String algorithm,
636 super(PUBLIC, session, keyID, algorithm, keyLength, attributes);
687 P11DSAPublicKey(Session session, long keyID, String algorithm,
689 super(PUBLIC, session, keyID, algorithm, keyLength, attributes);
748 P11DSAPrivateKey(Session session, long keyID, String algorithm,
750 super(PRIVATE, session, keyID, algorithm, keyLength, attributes);
809 P11DHPrivateKey(Session session, long keyID, String algorithm,
811 super(PRIVATE, session, keyID, algorithm, keyLength, attributes);
871 P11DHPublicKey(Session session, long keyID, String algorithm,
873 super(PUBLIC, session, keyID, algorithm, keyLength, attributes);
933 P11ECPrivateKey(Session session, long keyID, String algorithm,
935 super(PRIVATE, session, keyID, algorithm, keyLength, attributes);
993 P11ECPublicKey(Session session, long keyID, String algorithm,
995 super(PUBLIC, session, keyID, algorithm, keyLength, attributes);
1094 private Session session;
1096 SessionKeyRef(P11Key key , long keyID, Session session) {
1099 this.session = session;
1100 this.session.addObject();
1108 if (session.token.isValid()) {
1111 newSession = session.token.getOpSession();
1112 session.token.p11.C_DestroyObject(newSession.id(), keyID);
1117 session.token.releaseSession(newSession);
1118 session.removeObject();