Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/com/sun/net/ssl/SSLContextSpi.java
38922 views
/*1* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/*26* NOTE: this file was copied from javax.net.ssl.SSLContextSpi27*/2829package com.sun.net.ssl;3031import java.util.*;32import java.security.*;33import javax.net.ssl.*;3435/**36* This class defines the <i>Service Provider Interface</i> (<b>SPI</b>)37* for the <code>SSLContext</code> class.38*39* <p> All the abstract methods in this class must be implemented by each40* cryptographic service provider who wishes to supply the implementation41* of a particular SSL context.42*43* @deprecated As of JDK 1.4, this implementation-specific class was44* replaced by {@link javax.net.ssl.SSLContextSpi}.45*/46@Deprecated47public abstract class SSLContextSpi {48/**49* Initializes this context.50*51* @param km the sources of authentication keys52* @param tm the sources of peer authentication trust decisions53* @param random the source of randomness for this generator54*/55protected abstract void engineInit(KeyManager[] ah, TrustManager[] th,56SecureRandom sr) throws KeyManagementException;5758/**59* Returns a <code>SocketFactory</code> object for this60* context.61*62* @return the factory63*/64protected abstract SSLSocketFactory engineGetSocketFactory();6566/**67* Returns a <code>ServerSocketFactory</code> object for68* this context.69*70* @return the factory71*/72protected abstract SSLServerSocketFactory engineGetServerSocketFactory();73}747576