OpenJdkSelfSignedCertGenerator.java — netty Source File
Architecture documentation for OpenJdkSelfSignedCertGenerator.java, a java file in the netty codebase.
Entity Profile
Relationship Graph
Source Code
/*
* Copyright 2014 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.util;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.math.BigInteger;
import java.security.AccessController;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PrivilegedAction;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import static io.netty.handler.ssl.util.SelfSignedCertificate.newSelfSignedCertificate;
import static java.lang.invoke.MethodType.methodType;
/**
* Generates a self-signed certificate using {@code sun.security.x509} package provided by OpenJDK.
*/
final class OpenJdkSelfSignedCertGenerator {
private static final InternalLogger logger =
InternalLoggerFactory.getInstance(OpenJdkSelfSignedCertGenerator.class);
private static final MethodHandle CERT_INFO_SET_HANDLE;
private static final MethodHandle ISSUER_NAME_CONSTRUCTOR;
private static final MethodHandle CERT_IMPL_CONSTRUCTOR;
private static final MethodHandle X509_CERT_INFO_CONSTRUCTOR;
private static final MethodHandle CERTIFICATE_VERSION_CONSTRUCTOR;
private static final MethodHandle CERTIFICATE_SUBJECT_NAME_CONSTRUCTOR;
private static final MethodHandle X500_NAME_CONSTRUCTOR;
private static final MethodHandle CERTIFICATE_SERIAL_NUMBER_CONSTRUCTOR;
private static final MethodHandle CERTIFICATE_VALIDITY_CONSTRUCTOR;
private static final MethodHandle CERTIFICATE_X509_KEY_CONSTRUCTOR;
private static final MethodHandle CERTIFICATE_ALORITHM_ID_CONSTRUCTOR;
private static final MethodHandle CERT_IMPL_GET_HANDLE;
private static final MethodHandle CERT_IMPL_SIGN_HANDLE;
private static final MethodHandle ALGORITHM_ID_GET_HANDLE;
// ... (283 more lines)
Domain
Subdomains
Classes
Source
Frequently Asked Questions
What does OpenJdkSelfSignedCertGenerator.java do?
OpenJdkSelfSignedCertGenerator.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Allocators subdomain.
Where is OpenJdkSelfSignedCertGenerator.java in the architecture?
OpenJdkSelfSignedCertGenerator.java is located at handler/src/main/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator.java (domain: Buffer, subdomain: Allocators, directory: handler/src/main/java/io/netty/handler/ssl/util).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free