加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090405184604/http://developer.android.com:80/reference/java/security/Provider.html
public abstract class

Provider

extends Properties
java.lang.Object
   ↳ java.util.Dictionary<K, V>
     ↳ java.util.Hashtable<K, V>
       ↳ java.util.Properties
         ↳ java.security.Provider
Known Direct Subclasses

Summary

Nested Classes
public abstract class Provider.Service  
[Expand]
Inherited Fields
From class java.util.Properties
Protected Constructors
Provider(String name, double version, String info)
Public Methods
synchronized void clear()
Removes all key/value pairs from this Hashtable, leaving the size zero and the capacity unchanged.
synchronized Set<Entry<ObjectObject>> entrySet()
Returns a Set of the mappings contained in this Hashtable.
String getInfo()
Returns the generic information about the services being provided.
String getName()
Returns the name of this provider.
synchronized Provider.Service getService(String type, String algorithm)
synchronized Set<Provider.Service> getServices()
double getVersion()
Returns the version number for the services being provided
Set<Object> keySet()
Returns a Set of the keys contained in this Hashtable.
synchronized void load(InputStream inStream)
Loads properties from the specified InputStream.
synchronized Object put(Object key, Object value)
Associate the specified value with the specified key in this Hashtable.
synchronized void putAll(Map<?, ?> t)
Copies every mapping in the specified Map to this Hashtable.
synchronized Object remove(Object key)
Remove the key/value pair with the specified key from this Hashtable.
String toString()
Returns a string containing a concise, human-readable description of the receiver.
Collection<Object> values()
Returns a Collection of the values contained in this Hashtable.
Protected Methods
synchronized void putService(Provider.Service s)
synchronized void removeService(Provider.Service s)
[Expand]
Inherited Methods
From class java.util.Properties
From class java.util.Hashtable
From class java.util.Dictionary
From class java.lang.Object
From interface java.util.Map

Protected Constructors

protected Provider (String name, double version, String info)

Public Methods

public synchronized void clear ()

Removes all key/value pairs from this Hashtable, leaving the size zero and the capacity unchanged.

public synchronized Set<Entry<ObjectObject>> entrySet ()

Returns a Set of the mappings contained in this Hashtable. Each element in the set is a Map.Entry. The set is backed by this Hashtable so changes to one are reflected by the other. The set does not support adding.

Returns
  • a Set of the mappings

public String getInfo ()

Returns the generic information about the services being provided.

Returns
  • String generic description of the services being provided

public String getName ()

Returns the name of this provider.

Returns
  • String name of the provider

public synchronized Provider.Service getService (String type, String algorithm)

public synchronized Set<Provider.Service> getServices ()

public double getVersion ()

Returns the version number for the services being provided

Returns
  • double version number for the services being provided

public Set<Object> keySet ()

Returns a Set of the keys contained in this Hashtable. The set is backed by this Hashtable so changes to one are reflected by the other. The set does not support adding.

Returns
  • a Set of the keys

public synchronized void load (InputStream inStream)

Loads properties from the specified InputStream. The properties are of the form key=value, one property per line.

Parameters
inStream the input stream
Throws
IOException

public synchronized Object put (Object key, Object value)

Associate the specified value with the specified key in this Hashtable. If the key already exists, the old value is replaced. The key and value cannot be null.

Parameters
key the key to add
value the value to add
Returns
  • the old value associated with the specified key, null if the key did not exist

public synchronized void putAll (Map<?, ?> t)

Copies every mapping in the specified Map to this Hashtable.

Parameters
t the Map to copy mappings from

public synchronized Object remove (Object key)

Remove the key/value pair with the specified key from this Hashtable.

Parameters
key the key to remove
Returns
  • the value associated with the specified key, null if the specified key did not exist

public String toString ()

Returns a string containing a concise, human-readable description of the receiver.

Returns
  • a printable representation for the receiver.

public Collection<Object> values ()

Returns a Collection of the values contained in this Hashtable. The collection is backed by this Hashtable so changes to one are reflected by the other. The collection does not support adding.

Returns
  • a Collection of the values

Protected Methods

protected synchronized void putService (Provider.Service s)

protected synchronized void removeService (Provider.Service s)