Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 java.naming.jmod - Naming Module
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module.
JDK 17 Naming module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.naming.jmod.
JDK 17 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Naming module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.naming.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/jndi/ldap/SimpleClientId.java
/*
* Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.jndi.ldap;
import java.util.Arrays; // JDK1.2
import java.io.OutputStream;
import javax.naming.ldap.Control;
/**
* Represents the identity of a 'simple' authenticated LDAP connection.
* In addition to ClientId information, this class contains also the
* username and password.
*
* @author Rosanna Lee
*/
class SimpleClientId extends ClientId {
private final String username;
private final Object passwd;
private final int myHash;
SimpleClientId(int version, String hostname, int port,
String protocol, Control[] bindCtls, OutputStream trace,
String socketFactory, String username, Object passwd) {
super(version, hostname, port, protocol, bindCtls, trace,
socketFactory);
this.username = username;
int pwdHashCode = 0;
if (passwd == null) {
this.passwd = null;
} else if (passwd instanceof byte[]) {
this.passwd = ((byte[])passwd).clone();
pwdHashCode = Arrays.hashCode((byte[])passwd);
} else if (passwd instanceof char[]) {
this.passwd = ((char[])passwd).clone();
pwdHashCode = Arrays.hashCode((char[])passwd);
} else {
this.passwd = passwd;
pwdHashCode = passwd.hashCode();
}
myHash = super.hashCode()
^ (username != null ? username.hashCode() : 0)
^ pwdHashCode;
}
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof SimpleClientId)) {
return false;
}
SimpleClientId other = (SimpleClientId)obj;
return super.equals(obj)
&& (username == other.username // null OK
|| (username != null && username.equals(other.username)))
&& ((passwd == other.passwd) // null OK
|| (passwd != null && other.passwd != null
&& (((passwd instanceof String) && passwd.equals(other.passwd))
|| ((passwd instanceof byte[])
&& (other.passwd instanceof byte[])
&& Arrays.equals((byte[])passwd, (byte[])other.passwd))
|| ((passwd instanceof char[])
&& (other.passwd instanceof char[])
&& Arrays.equals((char[])passwd, (char[])other.passwd)))));
}
public int hashCode() {
return myHash;
}
public String toString() {
return super.toString() + ":" + username; // omit password for security
}
}
⏎ com/sun/jndi/ldap/SimpleClientId.java
Or download all of them as a single archive file:
File name: java.naming-17.0.5-src.zip File size: 490626 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.net.http.jmod - Net HTTP Module
2023-09-23, ≈86🔥, 0💬
Popular Posts:
What JAR files are required to run sax\Counter.java provided in the Apache Xerces package? You can f...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...