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/spec/DSAGenParameterSpec.java
/* * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.security.spec; /** * This immutable class specifies the set of parameters used for * generating DSA parameters as specified in * <a href="http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf">FIPS 186-3 Digital Signature Standard (DSS)</a>. * * @see AlgorithmParameterSpec * * @since 1.8 */ public final class DSAGenParameterSpec implements AlgorithmParameterSpec { private final int pLen; private final int qLen; private final int seedLen; /** * Creates a domain parameter specification for DSA parameter * generation using {@code primePLen} and {@code subprimeQLen}. * The value of {@code subprimeQLen} is also used as the default * length of the domain parameter seed in bits. * @param primePLen the desired length of the prime P in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits. * @throws IllegalArgumentException if {@code primePLen} * or {@code subprimeQLen} is illegal per the specification of * FIPS 186-3. */ public DSAGenParameterSpec(int primePLen, int subprimeQLen) { this(primePLen, subprimeQLen, subprimeQLen); } /** * Creates a domain parameter specification for DSA parameter * generation using {@code primePLen}, {@code subprimeQLen}, * and {@code seedLen}. * @param primePLen the desired length of the prime P in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits. * @param seedLen the desired length of the domain parameter seed in bits, * shall be equal to or greater than {@code subprimeQLen}. * @throws IllegalArgumentException if {@code primePLenLen}, * {@code subprimeQLen}, or {@code seedLen} is illegal per the * specification of FIPS 186-3. */ public DSAGenParameterSpec(int primePLen, int subprimeQLen, int seedLen) { switch (primePLen) { case 1024: if (subprimeQLen != 160) { throw new IllegalArgumentException ("subprimeQLen must be 160 when primePLen=1024"); } break; case 2048: if (subprimeQLen != 224 && subprimeQLen != 256) { throw new IllegalArgumentException ("subprimeQLen must be 224 or 256 when primePLen=2048"); } break; case 3072: if (subprimeQLen != 256) { throw new IllegalArgumentException ("subprimeQLen must be 256 when primePLen=3072"); } break; default: throw new IllegalArgumentException ("primePLen must be 1024, 2048, or 3072"); } if (seedLen < subprimeQLen) { throw new IllegalArgumentException ("seedLen must be equal to or greater than subprimeQLen"); } this.pLen = primePLen; this.qLen = subprimeQLen; this.seedLen = seedLen; } /** * Returns the desired length of the prime P of the * to-be-generated DSA domain parameters in bits. * @return the length of the prime P. */ public int getPrimePLength() { return pLen; } /** * Returns the desired length of the sub-prime Q of the * to-be-generated DSA domain parameters in bits. * @return the length of the sub-prime Q. */ public int getSubprimeQLength() { return qLen; } /** * Returns the desired length of the domain parameter seed in bits. * @return the length of the domain parameter seed. */ public int getSeedLength() { return seedLen; } }
⏎ java/security/spec/DSAGenParameterSpec.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, 45892👍, 1💬
Popular Posts:
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...