Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 jdk.crypto.cryptoki.jmod - Crypto KI Module
JDK 17 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 17 Crypto Cryptoki module.
JDK 17 Crypto KI module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.crypto.cryptoki.jmod.
JDK 17 Crypto KI module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Crypto KI module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.crypto.cryptoki.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/security/pkcs11/KeyCache.java
/* * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.security.pkcs11; import java.util.*; import java.lang.ref.*; import java.security.Key; import sun.security.util.Cache; /** * Key to P11Key translation cache. The PKCS#11 token can only perform * operations on keys stored on the token (permanently or temporarily). That * means that in order to allow the PKCS#11 provider to use keys from other * providers, we need to transparently convert them to P11Keys. The engines * do that using (Secret)KeyFactories, which in turn use this class as a * cache. * * There are two KeyCache instances per provider, one for secret keys and * one for public and private keys. * * @author Andreas Sterbenz * @since 1.5 */ final class KeyCache { private final Cache<IdentityWrapper, P11Key> strongCache; private WeakReference<Map<Key,P11Key>> cacheReference; KeyCache() { strongCache = Cache.newHardMemoryCache(16); } private static final class IdentityWrapper { final Object obj; IdentityWrapper(Object obj) { this.obj = obj; } public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof IdentityWrapper == false) { return false; } IdentityWrapper other = (IdentityWrapper)o; return this.obj == other.obj; } public int hashCode() { return System.identityHashCode(obj); } } synchronized P11Key get(Key key) { P11Key p11Key = strongCache.get(new IdentityWrapper(key)); if (p11Key != null) { return p11Key; } Map<Key,P11Key> map = (cacheReference == null) ? null : cacheReference.get(); if (map == null) { return null; } return map.get(key); } synchronized void put(Key key, P11Key p11Key) { strongCache.put(new IdentityWrapper(key), p11Key); Map<Key,P11Key> map = (cacheReference == null) ? null : cacheReference.get(); if (map == null) { map = new IdentityHashMap<>(); cacheReference = new WeakReference<>(map); } map.put(key, p11Key); } synchronized void clear() { strongCache.clear(); cacheReference = null; } }
⏎ sun/security/pkcs11/KeyCache.java
Or download all of them as a single archive file:
File name: jdk.crypto.cryptoki-17.0.5-src.zip File size: 239109 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.crypto.ec.jmod - Crypto EC Module
2023-10-15, 3918👍, 0💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
What Is XMLBeans xbean.jar 2.6.0? XMLBeans xbean.jar 2.6.0 is the JAR file for Apache XMLBeans 2.6.0...