Android
java.security
public abstract class

java.security.Provider

java.lang.Object
java.util.Dictionary<K, V>
java.util.Hashtable<K, V> Serializable Cloneable Map<K, V>
java.util.Properties
java.security.Provider
Nested Classes
Known Direct Subclasses

Summary

Fields inherited 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)
Methods inherited from class java.util.Properties
Methods inherited from class java.util.Hashtable
Methods inherited from class java.util.Dictionary
Methods inherited from class java.lang.Object
Methods inherited from interface java.util.Map

Details

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)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48