src/java.security.sasl/share/classes/javax/security/sasl/package-info.java
author michaelm
Tue, 29 Oct 2019 08:26:48 +0000
branchunixdomainchannels
changeset 58832 203fceb089fc
parent 54088 1cef5fc16af8
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18830
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     1
/*
45665
6f21cd7ec80e 8178114: Fix guide links in security APIs
wetmore
parents: 25859
diff changeset
     2
 * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
18830
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     4
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    10
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    15
 * accompanied this code).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    16
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    20
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    23
 * questions.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    24
 */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
18830
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    26
/**
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    27
 * Contains class and interfaces for supporting SASL.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    28
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    29
 * This package defines classes and interfaces for SASL mechanisms.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    30
 * It is used by developers to add authentication support for
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    31
 * connection-based protocols that use SASL.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    32
 *
54088
1cef5fc16af8 8220256: fix headings in java.security.sasl
weijun
parents: 47216
diff changeset
    33
 * <h2>SASL Overview</h2>
18830
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    34
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    35
 * Simple Authentication and Security Layer (SASL) specifies a
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    36
 * challenge-response protocol in which data is exchanged between the
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    37
 * client and the server for the purposes of
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    38
 * authentication and (optional) establishment of a security layer on
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    39
 * which to carry on subsequent communications.  It is used with
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    40
 * connection-based protocols such as LDAPv3 or IMAPv4.  SASL is
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    41
 * described in
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    42
 * <A HREF="http://www.ietf.org/rfc/rfc2222.txt">RFC 2222</A>.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    43
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    44
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    45
 * There are various <em>mechanisms</em> defined for SASL.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    46
 * Each mechanism defines the data that must be exchanged between the
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    47
 * client and server in order for the authentication to succeed.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    48
 * This data exchange required for a particular mechanism is referred to
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    49
 * to as its <em>protocol profile</em>.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    50
 * The following are some examples of mechanisms that have been defined by
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    51
 * the Internet standards community.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    52
 * <ul>
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    53
 * <li>DIGEST-MD5 (<A HREF="http://www.ietf.org/rfc/rfc2831.txt">RFC 2831</a>).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    54
 * This mechanism defines how HTTP Digest Authentication can be used as a SASL
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    55
 * mechanism.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    56
 * <li>Anonymous (<A HREF="http://www.ietf.org/rfc/rfc2245.txt">RFC 2245</a>).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    57
 * This mechanism is anonymous authentication in which no credentials are
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    58
 * necessary.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    59
 * <li>External (<A HREF="http://www.ietf.org/rfc/rfc2222.txt">RFC 2222</A>).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    60
 * This mechanism obtains authentication information
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    61
 * from an external source (such as TLS or IPsec).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    62
 * <li>S/Key (<A HREF="http://www.ietf.org/rfc/rfc2222.txt">RFC 2222</A>).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    63
 * This mechanism uses the MD4 digest algorithm to exchange data based on
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    64
 * a shared secret.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    65
 * <li>GSSAPI (<A HREF="http://www.ietf.org/rfc/rfc2222.txt">RFC 2222</A>).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    66
 * This mechanism uses the
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    67
 * <A HREF="http://www.ietf.org/rfc/rfc2078.txt">GSSAPI</A>
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    68
 * for obtaining authentication information.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    69
 * </ul>
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    70
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    71
 * Some of these mechanisms provide both authentication and establishment
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    72
 * of a security layer, others only authentication.  Anonymous and
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    73
 * S/Key do not provide for any security layers.  GSSAPI and DIGEST-MD5
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    74
 * allow negotiation of the security layer.  For External, the
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    75
 * security layer is determined by the external protocol.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    76
 *
54088
1cef5fc16af8 8220256: fix headings in java.security.sasl
weijun
parents: 47216
diff changeset
    77
 * <h2>Usage</h2>
18830
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    78
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    79
 * Users of this API are typically developers who produce
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    80
 * client library implementations for connection-based protocols,
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    81
 * such as LDAPv3 and IMAPv4,
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    82
 * and developers who write servers (such as LDAP servers and IMAP servers).
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    83
 * Developers who write client libraries use the
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    84
 * {@code SaslClient} and {@code SaslClientFactory} interfaces.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    85
 * Developers who write servers use the
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    86
 * {@code SaslServer} and {@code SaslServerFactory} interfaces.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    87
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    88
 * Among these two groups of users, each can be further divided into two groups:
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    89
 * those who <em>produce</em> the SASL mechanisms and those
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    90
 * who <em>use</em> the SASL mechanisms.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    91
 * The producers of SASL mechanisms need to provide implementations
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    92
 * for these interfaces, while users of the SASL mechanisms use
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    93
 * the APIs in this package to access those implementations.
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    94
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    95
 * <h2>Related Documentation</h2>
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    96
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
    97
 * Please refer to the
45665
6f21cd7ec80e 8178114: Fix guide links in security APIs
wetmore
parents: 25859
diff changeset
    98
 * {@extLink security_guide_sasl Java SASL Programming Guide}
6f21cd7ec80e 8178114: Fix guide links in security APIs
wetmore
parents: 25859
diff changeset
    99
 * for information on how to use this API.
18830
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
   100
 *
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
   101
 * @since 1.5
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
   102
 */
90956ead732f 8020557: javadoc cleanup in javax.security
juh
parents: 5551
diff changeset
   103
package javax.security.sasl;