jdk/src/java.xml.crypto/share/classes/javax/xml/crypto/XMLCryptoContext.java
author chegar
Sun, 17 Aug 2014 15:54:13 +0100
changeset 25859 3317bb8137f4
parent 5506 jdk/src/share/classes/javax/xml/crypto/XMLCryptoContext.java@202f599c92aa
permissions -rw-r--r--
8054834: Modular Source Code Reviewed-by: alanb, chegar, ihse, mduigou Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * $Id: XMLCryptoContext.java,v 1.6 2005/05/10 15:47:42 mullan Exp $
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
package javax.xml.crypto;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * Contains common context information for XML cryptographic operations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * <p>This interface contains methods for setting and retrieving properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * that affect the processing of XML signatures or XML encrypted structures.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * <p>Note that <code>XMLCryptoContext</code> instances can contain information
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * and state specific to the XML cryptographic structure it is used with.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * The results are unpredictable if an <code>XMLCryptoContext</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * used with multiple structures (for example, you should not use the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * {@link javax.xml.crypto.dsig.XMLValidateContext} instance to validate two
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * different {@link javax.xml.crypto.dsig.XMLSignature} objects).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * @author Sean Mullan
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * @author JSR 105 Expert Group
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
public interface XMLCryptoContext {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * Returns the base URI.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     * @return the base URI, or <code>null</code> if not specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * @see #setBaseURI(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    String getBaseURI();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * Sets the base URI.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * @param baseURI the base URI, or <code>null</code> to remove current
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     *    value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * @throws IllegalArgumentException if <code>baseURI</code> is not RFC
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     *    2396 compliant
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * @see #getBaseURI
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    void setBaseURI(String baseURI);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * Returns the key selector for finding a key.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * @return the key selector, or <code>null</code> if not specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * @see #setKeySelector(KeySelector)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    KeySelector getKeySelector();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * Sets the key selector for finding a key.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * @param ks the key selector, or <code>null</code> to remove the current
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     *    setting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * @see #getKeySelector
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    void setKeySelector(KeySelector ks);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * Returns a <code>URIDereferencer</code> that is used to dereference
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * {@link URIReference}s.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * @return the <code>URIDereferencer</code>, or <code>null</code> if not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     *    specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * @see #setURIDereferencer(URIDereferencer)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    URIDereferencer getURIDereferencer();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * Sets a <code>URIDereferencer</code> that is used to dereference
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * {@link URIReference}s. The specified <code>URIDereferencer</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * is used in place of an implementation's default
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * <code>URIDereferencer</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * @param dereferencer the <code>URIDereferencer</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     *    <code>null</code> to remove any current setting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @see #getURIDereferencer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    void setURIDereferencer(URIDereferencer dereferencer);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * Returns the namespace prefix that the specified namespace URI is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * associated with. Returns the specified default prefix if the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * namespace URI has not been bound to a prefix. To bind a namespace URI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * to a prefix, call the {@link #putNamespacePrefix putNamespacePrefix}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * @param namespaceURI a namespace URI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * @param defaultPrefix the prefix to be returned in the event that the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *    the specified namespace URI has not been bound to a prefix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * @return the prefix that is associated with the specified namespace URI,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     *    or <code>defaultPrefix</code> if the URI is not registered. If
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     *    the namespace URI is registered but has no prefix, an empty string
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     *    (<code>""</code>) is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * @throws NullPointerException if <code>namespaceURI</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     *    <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * @see #putNamespacePrefix(String, String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    String getNamespacePrefix(String namespaceURI, String defaultPrefix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * Maps the specified namespace URI to the specified prefix. If there is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * already a prefix associated with the specified namespace URI, the old
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * prefix is replaced by the specified prefix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * @param namespaceURI a namespace URI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * @param prefix a namespace prefix (or <code>null</code> to remove any
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     *    existing mapping). Specifying the empty string (<code>""</code>)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     *    binds no prefix to the namespace URI.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * @return the previous prefix associated with the specified namespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     *    URI, or <code>null</code> if there was none
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * @throws NullPointerException if <code>namespaceURI</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     *    <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * @see #getNamespacePrefix(String, String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    String putNamespacePrefix(String namespaceURI, String prefix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * Returns the default namespace prefix. The default namespace prefix
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * is the prefix for all namespace URIs not explicitly set by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * {@link #putNamespacePrefix putNamespacePrefix} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * @return the default namespace prefix, or <code>null</code> if none has
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     *    been set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * @see #setDefaultNamespacePrefix(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    String getDefaultNamespacePrefix();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * Sets the default namespace prefix. This sets the namespace prefix for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * all namespace URIs not explicitly set by the {@link #putNamespacePrefix
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * putNamespacePrefix} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @param defaultPrefix the default namespace prefix, or <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     *    to remove the current setting. Specify the empty string
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     *    (<code>""</code>) to bind no prefix.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * @see #getDefaultNamespacePrefix
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    void setDefaultNamespacePrefix(String defaultPrefix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * Sets the specified property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * @param name the name of the property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * @param value the value of the property to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * @return the previous value of the specified property, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     *    <code>null</code> if it did not have a value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * @throws NullPointerException if <code>name</code> is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * @see #getProperty(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    Object setProperty(String name, Object value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * Returns the value of the specified property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * @param name the name of the property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * @return the current value of the specified property, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     *    <code>null</code> if it does not have a value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * @throws NullPointerException if <code>name</code> is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * @see #setProperty(String, Object)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    Object getProperty(String name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * Returns the value to which this context maps the specified key.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * <p>More formally, if this context contains a mapping from a key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * <code>k</code> to a value <code>v</code> such that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * <code>(key==null ? k==null : key.equals(k))</code>, then this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * returns <code>v</code>; otherwise it returns <code>null</code>. (There
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * can be at most one such mapping.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * <p>This method is useful for retrieving arbitrary information that is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * specific to the cryptographic operation that this context is used for.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * @param key the key whose associated value is to be returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * @return the value to which this context maps the specified key, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     *    <code>null</code> if there is no mapping for the key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @see #put(Object, Object)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    Object get(Object key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * Associates the specified value with the specified key in this context.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * If the context previously contained a mapping for this key, the old
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * value is replaced by the specified value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * <p>This method is useful for storing arbitrary information that is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * specific to the cryptographic operation that this context is used for.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * @param key key with which the specified value is to be associated with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * @param value value to be associated with the specified key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @return the previous value associated with the key, or <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     *    if there was no mapping for the key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * @throws IllegalArgumentException if some aspect of this key or value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     *    prevents it from being stored in this context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * @see #get(Object)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    Object put(Object key, Object value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
}