EnhancingX509ExtendedTrustManager.java — netty Source File
Architecture documentation for EnhancingX509ExtendedTrustManager.java, a java file in the netty codebase.
Entity Profile
Relationship Graph
Source Code
/*
* Copyright 2023 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.handler.ssl;
import java.net.Socket;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.Collection;
import java.util.List;
import javax.naming.ldap.LdapName;
import javax.naming.ldap.Rdn;
import javax.net.ssl.ExtendedSSLSession;
import javax.net.ssl.SNIHostName;
import javax.net.ssl.SNIServerName;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.X509ExtendedTrustManager;
import javax.net.ssl.X509TrustManager;
import javax.security.auth.x500.X500Principal;
/**
* Wraps an existing {@link X509ExtendedTrustManager} and enhances the {@link CertificateException} that is thrown
* because of hostname validation.
*/
final class EnhancingX509ExtendedTrustManager extends X509ExtendedTrustManager {
// Constants for subject alt names of type DNS and IP. See X509Certificate#getSubjectAlternativeNames() javadocs.
static final int ALTNAME_DNS = 2;
static final int ALTNAME_URI = 6;
static final int ALTNAME_IP = 7;
private static final String SEPARATOR = ", ";
private final X509ExtendedTrustManager wrapped;
EnhancingX509ExtendedTrustManager(X509TrustManager wrapped) {
this.wrapped = (X509ExtendedTrustManager) wrapped;
}
@Override
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)
throws CertificateException {
wrapped.checkClientTrusted(chain, authType, socket);
}
@Override
// ... (136 more lines)
Domain
Subdomains
Source
Frequently Asked Questions
What does EnhancingX509ExtendedTrustManager.java do?
EnhancingX509ExtendedTrustManager.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Allocators subdomain.
Where is EnhancingX509ExtendedTrustManager.java in the architecture?
EnhancingX509ExtendedTrustManager.java is located at handler/src/main/java/io/netty/handler/ssl/EnhancingX509ExtendedTrustManager.java (domain: Buffer, subdomain: Allocators, directory: handler/src/main/java/io/netty/handler/ssl).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free