# Provider

public abstract class **Provider** extends [Properties](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html)  
This class represents a "provider" for the
Java Security API, where a provider implements some or all parts of
Java Security. Services that a provider may implement include:

- Algorithms (such as DSA, RSA, MD5 or SHA-1).
- Key generation, conversion, and management facilities (such as for algorithm-specific keys).

Each provider has a name and a version number, and is configured
in each runtime it is installed in.

See [The Provider Class](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/security/crypto/CryptoSpec.html#Provider)
in the "Java Cryptography Architecture API Specification \& Reference"
for information about how a particular type of provider, the
cryptographic service provider, works and is installed. However,
please note that a provider can be used to implement any security
service in Java that uses a pluggable architecture with a choice
of implementations that fit underneath.

Some provider implementations may encounter unrecoverable internal
errors during their operation, for example a failure to communicate with a
security token. A `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/ProviderException.html` should be used to indicate
such errors.

The service type `Provider` is reserved for use by the
security framework. Services of this type cannot be added, removed,
or modified by applications.
The following attributes are automatically placed in each Provider object:

| Name | Value |
|---|---|
| `Provider.id name` | `String.valueOf(provider.getName())` |
| `Provider.id version` | `String.valueOf(provider.getVersion())` |
| `Provider.id info` | `String.valueOf(provider.getInfo())` |
| `Provider.id className` | `provider.getClass().getName()` |
[**Attributes Automatically Placed in a Provider Object**]

<br />

### Nested Class Summary

|---|---|---|---|
| class | [Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html) || The description of a security service. |

### Inherited Field Summary

From class [java.util.Properties](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html)

|---|---|---|
| protected [Properties](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html) | [defaults](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#defaults) | A property list that contains default values for any keys not found in this property list. |

### Protected Constructor Summary

|---|---|
|   | [Provider](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#Provider(java.lang.String,%20double,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, double version, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) info) Constructs a provider with the specified name, version number, and information. |

### Public Method Summary

|---|---|
| synchronized void | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#clear())() Clears this provider so that it no longer contains the properties used to look up facilities implemented by the provider. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [compute](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#compute(java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,%20?%20super%20java.lang.Object,%20?%20extends%20java.lang.Object>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> remappingFunction) Attempts to compute a mapping for the specified key and its current mapped value (or `null` if there is no current mapping). |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#computeIfAbsent(java.lang.Object,%20java.util.function.Function<?%20super%20java.lang.Object,%20?%20extends%20java.lang.Object>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Function](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Function.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> mappingFunction) If the specified key is not already associated with a value (or is mapped to `null`), attempts to compute its value using the given mapping function and enters it into this map unless `null`. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfPresent](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#computeIfPresent(java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,%20?%20super%20java.lang.Object,%20?%20extends%20java.lang.Object>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> remappingFunction) If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. |
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [elements](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#elements())() Returns an enumeration of the values in this hashtable. |
| synchronized [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\> | [entrySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#entrySet())() Returns an unmodifiable Set view of the property entries contained in this Provider. |
| synchronized void | [forEach](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#forEach(java.util.function.BiConsumer<?%20super%20java.lang.Object,%20?%20super%20java.lang.Object>))([BiConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiConsumer.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#get(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns the value to which the specified key is mapped, or `null` if this map contains no mapping for the key. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getInfo](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getInfo())() Returns a human-readable description of the provider and its services. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getName](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getName())() Returns the name of this provider. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getOrDefault](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getOrDefault(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) defaultValue) Returns the value to which the specified key is mapped, or `defaultValue` if this map contains no mapping for the key. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getProperty](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getProperty(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) key) Searches for the property with the specified key in this property list. |
| synchronized [Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html) | [getService](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getService(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) type, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) algorithm) Get the service describing this Provider's implementation of the specified type of this algorithm or alias. |
| synchronized [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html)\> | [getServices](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getServices())() Get an unmodifiable Set of all services supported by this Provider. |
| double | [getVersion](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getVersion())() Returns the version number for this provider. |
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#keySet())() Returns an unmodifiable Set view of the property keys contained in this provider. |
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keys](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#keys())() Returns an enumeration of the keys in this hashtable. |
| synchronized void | [load](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#load(java.io.InputStream))([InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) inStream) Reads a property list (key and element pairs) from the input stream. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [merge](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#merge(java.lang.Object,%20java.lang.Object,%20java.util.function.BiFunction<?%20super%20java.lang.Object,%20?%20super%20java.lang.Object,%20?%20extends%20java.lang.Object>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> remappingFunction) If the specified key is not already associated with a value or is associated with null, associates it with the given value. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#put(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Sets the `key` property to have the specified `value`. |
| synchronized void | [putAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putAll(java.util.Map<?,%20?>))([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<?, ?\> t) Copies all of the mappings from the specified Map to this provider. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [putIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putIfAbsent(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) If the specified key is not already associated with a value (or is mapped to `null`) associates it with the given value and returns `null`, else returns the current value. |
| synchronized boolean | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#remove(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Removes the entry for the specified key only if it is currently mapped to the specified value. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#remove(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Removes the `key` property (and its corresponding `value`). |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#replace(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Replaces the entry for the specified key only if it is currently mapped to some value. |
| synchronized boolean | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#replace(java.lang.Object,%20java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) oldValue, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) newValue) Replaces the entry for the specified key only if currently mapped to the specified value. |
| synchronized void | [replaceAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#replaceAll(java.util.function.BiFunction<?%20super%20java.lang.Object,%20?%20super%20java.lang.Object,%20?%20extends%20java.lang.Object>))([BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> function) Replaces each entry's value with the result of invoking the given function on that entry, in the order entries are returned by an entry set iterator, until all entries have been processed or the function throws an exception. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#toString())() Returns a string with the name and the version number of this provider. |
| [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [values](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#values())() Returns an unmodifiable Collection view of the property values contained in this provider. |

### Protected Method Summary

|---|---|
| synchronized void | [putService](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putService(java.security.Provider.Service))([Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html) s) Add a service. |
| synchronized void | [removeService](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#removeService(java.security.Provider.Service))([Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html) s) Remove a service previously added using `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putService(java.security.Provider.Service)`. |

### Inherited Method Summary

From class [java.util.Properties](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html)

|---|---|
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getProperty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#getProperty(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) key, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) defaultValue) Searches for the property with the specified key in this property list. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getProperty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#getProperty(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) key) Searches for the property with the specified key in this property list. |
| void | [list](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#list(java.io.PrintStream))([PrintStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/PrintStream.html) out) Prints this property list out to the specified output stream. |
| void | [list](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#list(java.io.PrintWriter))([PrintWriter](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/PrintWriter.html) out) Prints this property list out to the specified output stream. |
| synchronized void | [load](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#load(java.io.InputStream))([InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) inStream) Reads a property list (key and element pairs) from the input byte stream. |
| synchronized void | [load](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#load(java.io.Reader))([Reader](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Reader.html) reader) Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format. |
| synchronized void | [loadFromXML](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#loadFromXML(java.io.InputStream))([InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) in) Loads all of the properties represented by the XML document on the specified input stream into this properties table. |
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<?\> | [propertyNames](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#propertyNames())() Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list. |
| void | [save](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#save(java.io.OutputStream,%20java.lang.String))([OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html) out, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) comments) *This method is deprecated. This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via the `store(OutputStream out, String comments)` method or the `storeToXML(OutputStream os, String comment)` method.* |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [setProperty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#setProperty(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) key, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) value) Calls the Hashtable method `put`. |
| void | [store](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#store(java.io.OutputStream,%20java.lang.String))([OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html) out, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) comments) Writes this property list (key and element pairs) in this `Properties` table to the output stream in a format suitable for loading into a `Properties` table using the `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#load(java.io.InputStream)` method. |
| void | [store](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#store(java.io.Writer,%20java.lang.String))([Writer](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Writer.html) writer, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) comments) Writes this property list (key and element pairs) in this `Properties` table to the output character stream in a format suitable for using the `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#load(java.io.Reader)` method. |
| void | [storeToXML](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#storeToXML(java.io.OutputStream,%20java.lang.String,%20java.lang.String))([OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html) os, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) comment, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) encoding) Emits an XML document representing all of the properties contained in this table, using the specified encoding. |
| void | [storeToXML](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#storeToXML(java.io.OutputStream,%20java.lang.String))([OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html) os, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) comment) Emits an XML document representing all of the properties contained in this table. |
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)\> | [stringPropertyNames](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#stringPropertyNames())() Returns a set of keys in this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list. |

From class [java.util.Hashtable](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html)

|---|---|
| synchronized void | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#clear())() Clears this hashtable so that it contains no keys. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#clone())() Creates a shallow copy of this hashtable. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [compute](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#compute(K,%20java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> remappingFunction) Attempts to compute a mapping for the specified key and its current mapped value (or `null` if there is no current mapping). |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#computeIfAbsent(K,%20java.util.function.Function<?%20super%20K,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Function](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Function.html)\<? super K, ? extends V\> mappingFunction) If the specified key is not already associated with a value (or is mapped to `null`), attempts to compute its value using the given mapping function and enters it into this map unless `null`. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfPresent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#computeIfPresent(K,%20java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> remappingFunction) If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. |
| synchronized boolean | [contains](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#contains(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Tests if some key maps into the specified value in this hashtable. |
| synchronized boolean | [containsKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#containsKey(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Tests if the specified object is a key in this hashtable. |
| boolean | [containsValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#containsValue(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Returns true if this hashtable maps one or more keys to this value. |
| synchronized [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [elements](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#elements())() Returns an enumeration of the values in this hashtable. |
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\> | [entrySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#entrySet())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html` view of the mappings contained in this map. |
| synchronized boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o) Compares the specified Object with this Map for equality, as per the definition in the Map interface. |
| synchronized void | [forEach](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#forEach(java.util.function.BiConsumer<?%20super%20K,%20?%20super%20V>))([BiConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiConsumer.html)\<? super K, ? super V\> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#get(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns the value to which the specified key is mapped, or `null` if this map contains no mapping for the key. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getOrDefault](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#getOrDefault(java.lang.Object,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) defaultValue) Returns the value to which the specified key is mapped, or `defaultValue` if this map contains no mapping for the key. |
| synchronized int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#hashCode())() Returns the hash code value for this Map as per the definition in the Map interface. |
| synchronized boolean | [isEmpty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#isEmpty())() Tests if this hashtable maps no keys to values. |
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#keySet())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html` view of the keys contained in this map. |
| synchronized [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keys](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#keys())() Returns an enumeration of the keys in this hashtable. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [merge](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#merge(K,%20V,%20java.util.function.BiFunction<?%20super%20V,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super V, ? super V, ? extends V\> remappingFunction) If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#put(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Maps the specified `key` to the specified `value` in this hashtable. |
| synchronized void | [putAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#putAll(java.util.Map<?%20extends%20K,%20?%20extends%20V>))([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<? extends K, ? extends V\> t) Copies all of the mappings from the specified map to this hashtable. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [putIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#putIfAbsent(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) If the specified key is not already associated with a value (or is mapped to `null`) associates it with the given value and returns `null`, else returns the current value. |
| void | [rehash](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#rehash())() Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently. |
| synchronized boolean | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#remove(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Removes the entry for the specified key only if it is currently mapped to the specified value. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#remove(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Removes the key (and its corresponding value) from this hashtable. |
| synchronized boolean | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#replace(K,%20V,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) oldValue, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) newValue) Replaces the entry for the specified key only if currently mapped to the specified value. |
| synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#replace(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Replaces the entry for the specified key only if it is currently mapped to some value. |
| synchronized void | [replaceAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#replaceAll(java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> function) Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
| synchronized int | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#size())() Returns the number of keys in this hashtable. |
| synchronized [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#toString())() Returns a string representation of this Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters ", " (comma and space). |
| [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [values](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#values())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html` view of the values contained in this map. |

From class [java.util.Dictionary](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html)

|---|---|
| abstract [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [elements](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#elements())() Returns an enumeration of the values in this dictionary. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#get(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns the value to which the key is mapped in this dictionary. |
| abstract boolean | [isEmpty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#isEmpty())() Tests if this dictionary maps no keys to value. |
| abstract [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keys](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#keys())() Returns an enumeration of the keys in this dictionary. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#put(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Maps the specified `key` to the specified `value` in this dictionary. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#remove(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Removes the `key` (and its corresponding `value`) from this dictionary. |
| abstract int | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Dictionary.html#size())() Returns the number of entries (distinct keys) in this dictionary. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.util.Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)

|---|---|
| abstract void | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#clear())() Removes all of the mappings from this map (optional operation). |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [compute](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#compute(K,%20java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> remappingFunction) Attempts to compute a mapping for the specified key and its current mapped value (or `null` if there is no current mapping). |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#computeIfAbsent(K,%20java.util.function.Function<?%20super%20K,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Function](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Function.html)\<? super K, ? extends V\> mappingFunction) If the specified key is not already associated with a value (or is mapped to `null`), attempts to compute its value using the given mapping function and enters it into this map unless `null`. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfPresent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#computeIfPresent(K,%20java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> remappingFunction) If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. |
| abstract boolean | [containsKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#containsKey(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns `true` if this map contains a mapping for the specified key. |
| abstract boolean | [containsValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#containsValue(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Returns `true` if this map maps one or more keys to the specified value. |
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\> | [entrySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#entrySet())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html` view of the mappings contained in this map. |
| abstract boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o) Compares the specified object with this map for equality. |
| void | [forEach](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#forEach(java.util.function.BiConsumer<?%20super%20K,%20?%20super%20V>))([BiConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiConsumer.html)\<? super K, ? super V\> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#get(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns the value to which the specified key is mapped, or `null` if this map contains no mapping for the key. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getOrDefault](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#getOrDefault(java.lang.Object,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) defaultValue) Returns the value to which the specified key is mapped, or `defaultValue` if this map contains no mapping for the key. |
| abstract int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#hashCode())() Returns the hash code value for this map. |
| abstract boolean | [isEmpty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#isEmpty())() Returns `true` if this map contains no key-value mappings. |
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#keySet())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html` view of the keys contained in this map. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [merge](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#merge(K,%20V,%20java.util.function.BiFunction<?%20super%20V,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super V, ? super V, ? extends V\> remappingFunction) If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#put(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Associates the specified value with the specified key in this map (optional operation). |
| abstract void | [putAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#putAll(java.util.Map<?%20extends%20K,%20?%20extends%20V>))([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<? extends K, ? extends V\> m) Copies all of the mappings from the specified map to this map (optional operation). |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [putIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#putIfAbsent(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) If the specified key is not already associated with a value (or is mapped to `null`) associates it with the given value and returns `null`, else returns the current value. |
| boolean | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#remove(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Removes the entry for the specified key only if it is currently mapped to the specified value. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#remove(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Removes the mapping for a key from this map if it is present (optional operation). |
| boolean | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#replace(K,%20V,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) oldValue, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) newValue) Replaces the entry for the specified key only if currently mapped to the specified value. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#replace(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Replaces the entry for the specified key only if it is currently mapped to some value. |
| void | [replaceAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#replaceAll(java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> function) Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
| abstract int | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#size())() Returns the number of key-value mappings in this map. |
| abstract [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [values](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#values())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html` view of the values contained in this map. |

## Protected Constructors

#### protected
**Provider**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, double version, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) info)

Constructs a provider with the specified name, version number,
and information.

##### Parameters

| name | the provider name. |
| version | the provider version number. |
| info | a description of the provider and its services. |
|---|---|

## Public Methods

#### public synchronized void
**clear**
()

Clears this provider so that it no longer contains the properties
used to look up facilities implemented by the provider.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"clearProviderProperties."+name`
(where `name` is the provider name) to see if it's ok to clear
this provider.

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to clear this provider |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**compute**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> remappingFunction)

Attempts to compute a mapping for the specified key and its
current mapped value (or `null` if there is no current
mapping).

If a security manager is enabled, its `checkSecurityAccess`
method is called with the strings `"putProviderProperty."+name`
and `"removeProviderProperty."+name`, where `name` is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.

##### Parameters

| key | key with which the specified value is to be associated |
| remappingFunction | the remapping function to compute a value |
|---|---|

##### Returns

- the new value associated with the specified key, or null if none

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values or remove properties. |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**computeIfAbsent**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Function](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Function.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> mappingFunction)

If the specified key is not already associated with a value (or
is mapped to `null`), attempts to compute its value using
the given mapping function and enters it into this map unless
`null`.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the strings `"putProviderProperty."+name`
and `"removeProviderProperty."+name`, where `name` is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.

##### Parameters

| key | key with which the specified value is to be associated |
| mappingFunction | the mapping function to compute a value |
|---|---|

##### Returns

- the current (existing or computed) value associated with the specified key, or null if the computed value is null

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values and remove properties. |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**computeIfPresent**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> remappingFunction)

If the value for the specified key is present and non-null, attempts to
compute a new mapping given the key and its current mapped value.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the strings `"putProviderProperty."+name`
and `"removeProviderProperty."+name`, where `name` is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.

##### Parameters

| key | key with which the specified value is to be associated |
| remappingFunction | the remapping function to compute a value |
|---|---|

##### Returns

- the new value associated with the specified key, or null if none

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values or remove properties. |
|---|---|

#### public [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**elements**
()

Returns an enumeration of the values in this hashtable.
Use the Enumeration methods on the returned object to fetch the elements
sequentially.

##### Returns

- an enumeration of the values in this hashtable.

#### public synchronized [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\>
**entrySet**
()

Returns an unmodifiable Set view of the property entries contained
in this Provider.

##### Returns

- a set view of the mappings contained in this map

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html`

#### public synchronized void
**forEach**
([BiConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiConsumer.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> action)

Performs the given action for each entry in this map until all entries
have been processed or the action throws an exception. Unless
otherwise specified by the implementing class, actions are performed in
the order of entry set iteration (if an iteration order is specified.)
Exceptions thrown by the action are relayed to the caller.

##### Parameters

| action | The action to be performed for each entry |
|---|---|

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**get**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key)

Returns the value to which the specified key is mapped,
or `null` if this map contains no mapping for the key.

More formally, if this map contains a mapping from a key
`k` to a value `v` such that `(key.equals(k))`,
then this method returns `v`; otherwise it returns
`null`. (There can be at most one such mapping.)

##### Parameters

| key | the key whose associated value is to be returned |
|---|---|

##### Returns

- the value to which the specified key is mapped, or `null` if this map contains no mapping for the key

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getInfo**
()

Returns a human-readable description of the provider and its
services. This may return an HTML page, with relevant links.

##### Returns

- a description of the provider and its services.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getName**
()

Returns the name of this provider.

##### Returns

- the name of this provider.

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**getOrDefault**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) defaultValue)

Returns the value to which the specified key is mapped, or
`defaultValue` if this map contains no mapping for the key.

##### Parameters

| key | the key whose associated value is to be returned |
| defaultValue | the default mapping of the key |
|---|---|

##### Returns

- the value to which the specified key is mapped, or `defaultValue` if this map contains no mapping for the key

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getProperty**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) key)

Searches for the property with the specified key in this property list.
If the key is not found in this property list, the default property list,
and its defaults, recursively, are then checked. The method returns
`null` if the property is not found.

##### Parameters

| key | the property key. |
|---|---|

##### Returns

- the value in this property list with the specified key value.

#### public synchronized [Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html)
**getService**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) type, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) algorithm)

Get the service describing this Provider's implementation of the
specified type of this algorithm or alias. If no such
implementation exists, this method returns null. If there are two
matching services, one added to this provider using
`https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putService(java.security.Provider.Service)` and one added via `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Hashtable.html#put(K,%20V)`,
the service added via `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putService(java.security.Provider.Service)` is returned.

##### Parameters

| type | the type of `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html` requested (for example, `MessageDigest`) |
| algorithm | the case insensitive algorithm name (or alternate alias) of the service requested (for example, `SHA-1`) |
|---|---|

##### Returns

- the service describing this Provider's matching service or null if no such service exists

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if type or algorithm is null |
|---|---|

#### public synchronized [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html)\>
**getServices**
()

Get an unmodifiable Set of all services supported by
this Provider.

##### Returns

- an unmodifiable Set of all services supported by this Provider

#### public double
**getVersion**
()

Returns the version number for this provider.

##### Returns

- the version number for this provider.

#### public [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**keySet**
()

Returns an unmodifiable Set view of the property keys contained in
this provider.

##### Returns

- a set view of the keys contained in this map

#### public [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**keys**
()

Returns an enumeration of the keys in this hashtable.

##### Returns

- an enumeration of the keys in this hashtable.

#### public synchronized void
**load**
([InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) inStream)

Reads a property list (key and element pairs) from the input stream.

##### Parameters

| inStream | the input stream. |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an error occurred when reading from the input stream. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html#load(java.io.InputStream)`

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**merge**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> remappingFunction)

If the specified key is not already associated with a value or is
associated with null, associates it with the given value. Otherwise,
replaces the value with the results of the given remapping function,
or removes if the result is null. This method may be of use when
combining multiple mapped values for a key.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the strings `"putProviderProperty."+name`
and `"removeProviderProperty."+name`, where `name` is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.

##### Parameters

| key | key with which the resulting value is to be associated |
| value | the non-null value to be merged with the existing value associated with the key or, if no existing value or a null value is associated with the key, to be associated with the key |
| remappingFunction | the remapping function to recompute a value if present |
|---|---|

##### Returns

- the new value associated with the specified key, or null if no value is associated with the key

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values or remove properties. |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**put**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

Sets the `key` property to have the specified
`value`.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"putProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to set this
provider's property values.

##### Parameters

| key | the hashtable key |
| value | the value |
|---|---|

##### Returns

- the previous value of the specified key in this hashtable, or `null` if it did not have one

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values. |
|---|---|

#### public synchronized void
**putAll**
([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<?, ?\> t)

Copies all of the mappings from the specified Map to this provider.
These mappings will replace any properties that this provider had
for any of the keys currently in the specified Map.

##### Parameters

| t | mappings to be stored in this map |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**putIfAbsent**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

If the specified key is not already associated with a value (or is mapped
to `null`) associates it with the given value and returns
`null`, else returns the current value.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"putProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to set this
provider's property values.

##### Parameters

| key | key with which the specified value is to be associated |
| value | value to be associated with the specified key |
|---|---|

##### Returns

- the previous value associated with the specified key, or `null` if there was no mapping for the key. (A `null` return can also indicate that the map previously associated `null` with the key, if the implementation supports null values.)

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values. |
|---|---|

#### public synchronized boolean
**remove**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

Removes the entry for the specified key only if it is currently
mapped to the specified value.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"removeProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to remove this
provider's properties.

##### Parameters

| key | key with which the specified value is associated |
| value | value expected to be associated with the specified key |
|---|---|

##### Returns

- `true` if the value was removed

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to remove this provider's properties. |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**remove**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key)

Removes the `key` property (and its corresponding
`value`).

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"removeProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to remove this
provider's properties.

##### Parameters

| key | the key that needs to be removed |
|---|---|

##### Returns

- the value to which the key had been mapped in this hashtable, or `null` if the key did not have a mapping

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to remove this provider's properties. |
|---|---|

#### public synchronized [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**replace**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

Replaces the entry for the specified key only if it is
currently mapped to some value.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"putProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to set this
provider's property values.

##### Parameters

| key | key with which the specified value is associated |
| value | value to be associated with the specified key |
|---|---|

##### Returns

- the previous value associated with the specified key, or `null` if there was no mapping for the key. (A `null` return can also indicate that the map previously associated `null` with the key, if the implementation supports null values.)

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values. |
|---|---|

#### public synchronized boolean
**replace**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) oldValue, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) newValue)

Replaces the entry for the specified key only if currently
mapped to the specified value.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"putProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to set this
provider's property values.

##### Parameters

| key | key with which the specified value is associated |
| oldValue | value expected to be associated with the specified key |
| newValue | value to be associated with the specified key |
|---|---|

##### Returns

- `true` if the value was replaced

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values. |
|---|---|

#### public synchronized void
**replaceAll**
([BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? super [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), ? extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> function)

Replaces each entry's value with the result of invoking the given
function on that entry, in the order entries are returned by an entry
set iterator, until all entries have been processed or the function
throws an exception.

If a security manager is enabled, its `checkSecurityAccess`
method is called with the string `"putProviderProperty."+name`,
where `name` is the provider name, to see if it's ok to set this
provider's property values.

##### Parameters

| function | the function to apply to each entry |
|---|---|

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values. |
|---|---|

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**toString**
()

Returns a string with the name and the version number
of this provider.

##### Returns

- the string with the name and the version number for this provider.

#### public [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**values**
()

Returns an unmodifiable Collection view of the property values
contained in this provider.

##### Returns

- a collection view of the values contained in this map

## Protected Methods

#### protected synchronized void
**putService**
([Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html) s)

Add a service. If a service of the same type with the same algorithm
name exists and it was added using `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putService(java.security.Provider.Service)`,
it is replaced by the new service.
This method also places information about this service
in the provider's Hashtable values in the format described in the
[Java Cryptography Architecture API Specification \& Reference](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/security/crypto/CryptoSpec.html).

Also, if there is a security manager, its
`checkSecurityAccess` method is called with the string
`"putProviderProperty."+name`, where `name` is
the provider name, to see if it's ok to set this provider's property
values. If the default implementation of `checkSecurityAccess`
is used (that is, that method is not overriden), then this results in
a call to the security manager's `checkPermission` method with
a `SecurityPermission("putProviderProperty."+name)`
permission.

##### Parameters

| s | the Service to add |
|---|---|

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to set property values. |
| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if s is null |
|---|---|

#### protected synchronized void
**removeService**
([Provider.Service](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.Service.html) s)

Remove a service previously added using
`https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#putService(java.security.Provider.Service)`. The specified service is removed from
this provider. It will no longer be returned by
`https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Provider.html#getService(java.lang.String,%20java.lang.String)` and its information will be removed
from this provider's Hashtable.

Also, if there is a security manager, its
`checkSecurityAccess` method is called with the string
`"removeProviderProperty."+name`, where `name` is
the provider name, to see if it's ok to remove this provider's
properties. If the default implementation of
`checkSecurityAccess` is used (that is, that method is not
overriden), then this results in a call to the security manager's
`checkPermission` method with a
`SecurityPermission("removeProviderProperty."+name)`
permission.

##### Parameters

| s | the Service to be removed |
|---|---|

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if a security manager exists and its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkSecurityAccess(java.lang.String)` method denies access to remove this provider's properties. |
| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if s is null |
|---|---|