History

My first initial commit with all of mine experimental changes.

Dmitry Kabak (userdima committed 13 years ago

Commit d37b88d1 parent 3f5b46618352 files · +2598093 −-8690Browse files

Showing the changes to java/pkg/javax/net/ssl/ExtendedSSLSession.java (1 of 18352 files). Show all

Unified · Split

java/pkg/javax/net/ssl/ExtendedSSLSession.java+86−0
@@ -0,0 +1,86 @@
1+/*
2+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+ *
5+ * This code is free software; you can redistribute it and/or modify it
6+ * under the terms of the GNU General Public License version 2 only, as
7+ * published by the Free Software Foundation. Oracle designates this
8+ * particular file as subject to the "Classpath" exception as provided
9+ * by Oracle in the LICENSE file that accompanied this code.
10+ *
11+ * This code is distributed in the hope that it will be useful, but WITHOUT
12+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+ * version 2 for more details (a copy is included in the LICENSE file that
15+ * accompanied this code).
16+ *
17+ * You should have received a copy of the GNU General Public License version
18+ * 2 along with this work; if not, write to the Free Software Foundation,
19+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20+ *
21+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22+ * or visit www.oracle.com if you need additional information or have any
23+ * questions.
24+ */
25+
26+package javax.net.ssl;
27+
28+/**
29+ * Extends the <code>SSLSession</code> interface to support additional
30+ * session attributes.
31+ *
32+ * @since 1.7
33+ */
34+public abstract class ExtendedSSLSession implements SSLSession {
35+ /**
36+ * Obtains an array of supported signature algorithms that the local side
37+ * is willing to use.
38+ * <p>
39+ * Note: this method is used to indicate to the peer which signature
40+ * algorithms may be used for digital signatures in TLS 1.2. It is
41+ * not meaningful for TLS versions prior to 1.2.
42+ * <p>
43+ * The signature algorithm name must be a standard Java Security
44+ * name (such as "SHA1withRSA", "SHA256withECDSA", and so on).
45+ * See Appendix A in the <a href=
46+ * "../../../technotes/guides/security/crypto/CryptoSpec.html#AppA">
47+ * Java Cryptography Architecture API Specification &amp; Reference </a>
48+ * for information about standard algorithm names.
49+ * <p>
50+ * Note: the local supported signature algorithms should conform to
51+ * the algorithm constraints specified by
52+ * {@link SSLParameters#getAlgorithmConstraints getAlgorithmConstraints()}
53+ * method in <code>SSLParameters</code>.
54+ *
55+ * @return An array of supported signature algorithms, in descending
56+ * order of preference. The return value is an empty array if
57+ * no signature algorithm is supported.
58+ *
59+ * @see SSLParameters#getAlgorithmConstraints
60+ */
61+ public abstract String[] getLocalSupportedSignatureAlgorithms();
62+
63+ /**
64+ * Obtains an array of supported signature algorithms that the peer is
65+ * able to use.
66+ * <p>
67+ * Note: this method is used to indicate to the local side which signature
68+ * algorithms may be used for digital signatures in TLS 1.2. It is
69+ * not meaningful for TLS versions prior to 1.2.
70+ * <p>
71+ * The signature algorithm name must be a standard Java Security
72+ * name (such as "SHA1withRSA", "SHA256withECDSA", and so on).
73+ * See Appendix A in the <a href=
74+ * "../../../technotes/guides/security/crypto/CryptoSpec.html#AppA">
75+ * Java Cryptography Architecture API Specification &amp; Reference </a>
76+ * for information about standard algorithm names.
77+ *
78+ * @return An array of supported signature algorithms, in descending
79+ * order of preference. The return value is an empty array if
80+ * the peer has not sent the supported signature algorithms.
81+ *
82+ * @see X509KeyManager
83+ * @see X509ExtendedKeyManager
84+ */
85+ public abstract String[] getPeerSupportedSignatureAlgorithms();
86+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t