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.security.sasl.jmod - Security SASL Module
JDK 17 java.security.sasl.jmod is the JMOD file for JDK 17 Security SASL (Simple Authentication and Security Layer) module.
JDK 17 Security SASL module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.security.sasl.jmod.
JDK 17 Security SASL module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Security SASL module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.security.sasl.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/security/sasl/CramMD5Client.java
/* * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.security.sasl; import javax.security.sasl.*; import java.security.NoSuchAlgorithmException; import java.util.logging.Logger; import java.util.logging.Level; import static java.nio.charset.StandardCharsets.UTF_8; /** * Implements the CRAM-MD5 SASL client-side mechanism. * (<A HREF="http://www.ietf.org/rfc/rfc2195.txt">RFC 2195</A>). * CRAM-MD5 has no initial response. It receives bytes from * the server as a challenge, which it hashes by using MD5 and the password. * It concatenates the authentication ID with this result and returns it * as the response to the challenge. At that point, the exchange is complete. * * @author Vincent Ryan * @author Rosanna Lee */ final class CramMD5Client extends CramMD5Base implements SaslClient { private String username; /** * Creates a SASL mechanism with client credentials that it needs * to participate in CRAM-MD5 authentication exchange with the server. * * @param authID A non-null string representing the principal * being authenticated. * * @param pw A non-null String or byte[] * containing the password. If it is an array, it is first cloned. */ CramMD5Client(String authID, byte[] pw) throws SaslException { if (authID == null || pw == null) { throw new SaslException( "CRAM-MD5: authentication ID and password must be specified"); } username = authID; this.pw = pw; // caller should have already cloned } /** * CRAM-MD5 has no initial response. */ public boolean hasInitialResponse() { return false; } /** * Processes the challenge data. * * The server sends a challenge data using which the client must * compute an MD5-digest with its password as the key. * * @param challengeData A non-null byte array containing the challenge * data from the server. * @return A non-null byte array containing the response to be sent to * the server. * @throws SaslException if platform does not have MD5 support * @throws IllegalStateException if this method is invoked more than once. */ public byte[] evaluateChallenge(byte[] challengeData) throws SaslException { // See if we've been here before if (completed) { throw new IllegalStateException( "CRAM-MD5 authentication already completed"); } if (aborted) { throw new IllegalStateException( "CRAM-MD5 authentication previously aborted due to error"); } // generate a keyed-MD5 digest from the user's password and challenge. try { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "CRAMCLNT01:Received challenge: {0}", new String(challengeData, UTF_8)); } String digest = HMAC_MD5(pw, challengeData); // clear it when we no longer need it clearPassword(); // response is username + " " + digest String resp = username + " " + digest; logger.log(Level.FINE, "CRAMCLNT02:Sending response: {0}", resp); completed = true; return resp.getBytes(UTF_8); } catch (java.security.NoSuchAlgorithmException e) { aborted = true; throw new SaslException("MD5 algorithm not available on platform", e); } } }
⏎ com/sun/security/sasl/CramMD5Client.java
Or download all of them as a single archive file:
File name: java.security.sasl-17.0.5-src.zip File size: 78831 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.smartcardio.jmod - Smart Card IO Module
2023-10-27, 2278👍, 0💬
Popular Posts:
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...