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 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/security/Signer.java
/* * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.security; import java.io.*; /** * This class is used to represent an Identity that can also digitally * sign data. * * <p>The management of a signer's private keys is an important and * sensitive issue that should be handled by subclasses as appropriate * to their intended use. * * @see Identity * * @author Benjamin Renaud * @since 1.1 * * @deprecated This class is deprecated and subject to removal in a future * version of Java SE. It has been replaced by * {@code java.security.KeyStore}, the {@code java.security.cert} package, * and {@code java.security.Principal}. */ @Deprecated(since="1.2", forRemoval=true) @SuppressWarnings("removal") public abstract class Signer extends Identity { @java.io.Serial private static final long serialVersionUID = -1763464102261361480L; /** * The signer's private key. * * @serial */ private PrivateKey privateKey; /** * Creates a signer. This constructor should only be used for * serialization. */ protected Signer() { super(); } /** * Creates a signer with the specified identity name. * * @param name the identity name. */ public Signer(String name) { super(name); } /** * Creates a signer with the specified identity name and scope. * * @param name the identity name. * * @param scope the scope of the identity. * * @throws KeyManagementException if there is already an identity * with the same name in the scope. */ public Signer(String name, IdentityScope scope) throws KeyManagementException { super(name, scope); } /** * Returns this signer's private key. * * <p>First, if there is a security manager, its {@code checkSecurityAccess} * method is called with {@code "getSignerPrivateKey"} * as its argument to see if it's ok to return the private key. * * @return this signer's private key, or null if the private key has * not yet been set. * * @throws SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * returning the private key. * * @see SecurityManager#checkSecurityAccess */ public PrivateKey getPrivateKey() { check("getSignerPrivateKey"); return privateKey; } /** * Sets the key pair (public key and private key) for this signer. * * <p>First, if there is a security manager, its {@code checkSecurityAccess} * method is called with {@code "setSignerKeyPair"} * as its argument to see if it's ok to set the key pair. * * @param pair an initialized key pair. * * @throws InvalidParameterException if the key pair is not * properly initialized. * @throws KeyException if the key pair cannot be set for any * other reason. * @throws SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * setting the key pair. * * @see SecurityManager#checkSecurityAccess */ public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException { check("setSignerKeyPair"); final PublicKey pub = pair.getPublic(); PrivateKey priv = pair.getPrivate(); if (pub == null || priv == null) { throw new InvalidParameterException(); } try { AccessController.doPrivileged( new PrivilegedExceptionAction<>() { public Void run() throws KeyManagementException { setPublicKey(pub); return null; } }); } catch (PrivilegedActionException pae) { throw (KeyManagementException) pae.getException(); } privateKey = priv; } String printKeys() { String keys = ""; PublicKey publicKey = getPublicKey(); if (publicKey != null && privateKey != null) { keys = "\tpublic and private keys initialized"; } else { keys = "\tno keys"; } return keys; } /** * Returns a string of information about the signer. * * @return a string of information about the signer. */ public String toString() { return "[Signer]" + super.toString(); } private static void check(String directive) { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkSecurityAccess(directive); } } }
⏎ java/security/Signer.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 68849👍, 1💬
Popular Posts:
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...