Build 1.0_r1(from source)

java.security
Class Provider

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by java.security.Provider
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Direct Known Subclasses:
AuthProvider

public abstract class Provider
extends Properties

See Also:
Serialized Form

Nested Class Summary
static class Provider.Service
           
 
Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
protected Provider(String name, double version, String info)
           
 
Method Summary
 void clear()
          Removes all key/value pairs from this Hashtable, leaving the size zero and the capacity unchanged.
 Set<Map.Entry<Object,Object>> 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.
(package private)  int getProviderNumber()
          Get the provider preference order number.
(package private)  Provider.Service getService(String type)
          Get the service of the specified type
 Provider.Service getService(String type, String algorithm)
           
 Set<Provider.Service> getServices()
           
 double getVersion()
          Returns the version number for the services being provided
(package private)  boolean implementsAlg(String serv, String alg, String attribute, String val)
          returns true if the provider implements the specified algorithm.
 Set<Object> keySet()
          Returns a Set of the keys contained in this Hashtable.
 void load(InputStream inStream)
          Loads properties from the specified InputStream.
 Object put(Object key, Object value)
          Associate the specified value with the specified key in this Hashtable.
 void putAll(Map<?,?> t)
          Copies every mapping in the specified Map to this Hashtable.
protected  void putService(Provider.Service s)
           
 Object remove(Object key)
          Remove the key/value pair with the specified key from this Hashtable.
protected  void removeService(Provider.Service s)
           
(package private)  void setProviderNumber(int n)
          Set the provider preference order number.
 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.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, size
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Provider

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

getName

public String getName()
Returns the name of this provider.

Returns:
String name of the provider

getVersion

public double getVersion()
Returns the version number for the services being provided

Returns:
double version number for the services being provided

getInfo

public String getInfo()
Returns the generic information about the services being provided.

Returns:
String generic description of the services being provided

toString

public String toString()
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Hashtable<Object,Object>
Returns:
a printable representation for the receiver.

clear

public void clear()
Description copied from class: Hashtable
Removes all key/value pairs from this Hashtable, leaving the size zero and the capacity unchanged.

Specified by:
clear in interface Map<Object,Object>
Overrides:
clear in class Hashtable<Object,Object>
See Also:
Hashtable.isEmpty(), Hashtable.size()

load

public void load(InputStream inStream)
          throws IOException
Description copied from class: Properties
Loads properties from the specified InputStream. The properties are of the form key=value, one property per line.

Overrides:
load in class Properties
Parameters:
inStream - the input stream
Throws:
IOException

putAll

public void putAll(Map<?,?> t)
Description copied from class: Hashtable
Copies every mapping in the specified Map to this Hashtable.

Specified by:
putAll in interface Map<Object,Object>
Overrides:
putAll in class Hashtable<Object,Object>
Parameters:
t - the Map to copy mappings from

entrySet

public Set<Map.Entry<Object,Object>> entrySet()
Description copied from class: Hashtable
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.

Specified by:
entrySet in interface Map<Object,Object>
Overrides:
entrySet in class Hashtable<Object,Object>
Returns:
a Set of the mappings

keySet

public Set<Object> keySet()
Description copied from class: Hashtable
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.

Specified by:
keySet in interface Map<Object,Object>
Overrides:
keySet in class Hashtable<Object,Object>
Returns:
a Set of the keys

values

public Collection<Object> values()
Description copied from class: Hashtable
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.

Specified by:
values in interface Map<Object,Object>
Overrides:
values in class Hashtable<Object,Object>
Returns:
a Collection of the values

put

public Object put(Object key,
                  Object value)
Description copied from class: Hashtable
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.

Specified by:
put in interface Map<Object,Object>
Overrides:
put in class Hashtable<Object,Object>
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
See Also:
Hashtable.elements(), Hashtable.get(java.lang.Object), Hashtable.keys(), Object.equals(java.lang.Object)

remove

public Object remove(Object key)
Description copied from class: Hashtable
Remove the key/value pair with the specified key from this Hashtable.

Specified by:
remove in interface Map<Object,Object>
Overrides:
remove in class Hashtable<Object,Object>
Parameters:
key - the key to remove
Returns:
the value associated with the specified key, null if the specified key did not exist
See Also:
Hashtable.get(java.lang.Object), Hashtable.put(K, V)

implementsAlg

boolean implementsAlg(String serv,
                      String alg,
                      String attribute,
                      String val)
returns true if the provider implements the specified algorithm. Caller must specify the cryptographic service and specify constraints via the attribute name the attribute value

Parameters:
serv - Crypto service
alg - Algorithm or type
attribute - The attribute name or null
val - The attribute value
Returns:

setProviderNumber

void setProviderNumber(int n)
Set the provider preference order number.

Parameters:
n -

getProviderNumber

int getProviderNumber()
Get the provider preference order number.

Returns:

getService

Provider.Service getService(String type)
Get the service of the specified type


getService

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

getServices

public Set<Provider.Service> getServices()

putService

protected void putService(Provider.Service s)

removeService

protected void removeService(Provider.Service s)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature