0N/A/*
2362N/A * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A/*
0N/A * NOTE: this file was copied from javax.net.ssl.X509KeyManager
0N/A */
0N/A
0N/Apackage com.sun.net.ssl;
0N/A
0N/Aimport java.security.KeyManagementException;
0N/Aimport java.security.PrivateKey;
0N/Aimport java.security.Principal;
0N/Aimport java.security.cert.X509Certificate;
0N/A
0N/A/**
0N/A * Instances of this interface manage which X509 certificate-based
0N/A * key pairs are used to authenticate the local side of a secure
0N/A * socket. The individual entries are identified by unique alias names.
0N/A *
0N/A * @deprecated As of JDK 1.4, this implementation-specific class was
0N/A * replaced by {@link javax.net.ssl.X509KeyManager}.
0N/A */
0N/A@Deprecated
0N/Apublic interface X509KeyManager extends KeyManager {
0N/A /**
0N/A * Get the matching aliases for authenticating the client side of a secure
0N/A * socket given the public key type and the list of
0N/A * certificate issuer authorities recognized by the peer (if any).
0N/A *
0N/A * @param keyType the key algorithm type name
0N/A * @param issuers the list of acceptable CA issuer subject names
0N/A * @return the matching alias names
0N/A */
0N/A public String[] getClientAliases(String keyType, Principal[] issuers);
0N/A
0N/A /**
0N/A * Choose an alias to authenticate the client side of a secure
0N/A * socket given the public key type and the list of
0N/A * certificate issuer authorities recognized by the peer (if any).
0N/A *
0N/A * @param keyType the key algorithm type name
0N/A * @param issuers the list of acceptable CA issuer subject names
0N/A * @return the alias name for the desired key
0N/A */
0N/A public String chooseClientAlias(String keyType, Principal[] issuers);
0N/A
0N/A /**
0N/A * Get the matching aliases for authenticating the server side of a secure
0N/A * socket given the public key type and the list of
0N/A * certificate issuer authorities recognized by the peer (if any).
0N/A *
0N/A * @param keyType the key algorithm type name
0N/A * @param issuers the list of acceptable CA issuer subject names
0N/A * @return the matching alias names
0N/A */
0N/A public String[] getServerAliases(String keyType, Principal[] issuers);
0N/A
0N/A /**
0N/A * Choose an alias to authenticate the server side of a secure
0N/A * socket given the public key type and the list of
0N/A * certificate issuer authorities recognized by the peer (if any).
0N/A *
0N/A * @param keyType the key algorithm type name
0N/A * @param issuers the list of acceptable CA issuer subject names
0N/A * @return the alias name for the desired key
0N/A */
0N/A public String chooseServerAlias(String keyType, Principal[] issuers);
0N/A
0N/A /**
0N/A * Returns the certificate chain associated with the given alias.
0N/A *
0N/A * @param alias the alias name
0N/A *
0N/A * @return the certificate chain (ordered with the user's certificate first
0N/A * and the root certificate authority last)
0N/A */
0N/A public X509Certificate[] getCertificateChain(String alias);
0N/A
0N/A /*
0N/A * Returns the key associated with the given alias.
0N/A *
0N/A * @param alias the alias name
0N/A *
0N/A * @return the requested key
0N/A */
0N/A public PrivateKey getPrivateKey(String alias);
0N/A}