All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.security.Provider

java.lang.Object
    |
    +----java.util.Dictionary
            |
            +----java.util.Hashtable
                    |
                    +----java.util.Properties
                            |
                            +----java.security.Provider

public abstract class Provider
extends Properties
This class represents a "provider" for the Java Security API. A provider implements some or all parts of Java Security, including:

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

There is a default provider that comes standard with the JDK. It is called the SUN Provider. See The Provider Class in the "Java Cryptography Architecture API Specification & Reference" for information about how providers work and how to install them.


Constructor Index

 o Provider(String, double, String)
Constructs a provider with the specified name, version number, and information.

Method Index

 o clear()
Clears this provider so that it no longer contains the properties used to look up facilities implemented by the provider.
 o getInfo()
Returns a human-readable description of the provider and its services.
 o getName()
Returns the name of this provider.
 o getVersion()
Returns the version number for this provider.
 o put(Object, Object)
Sets the key property to have the specified value.
 o remove(Object)
Removes the key property (and its corresponding value).
 o toString()
Returns a string with the name and the version number of this provider.

Constructors

 o Provider
protected Provider(String name,
                   double version,
                   String 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.

Methods

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

Returns:
the name of this provider.
 o getVersion
public double getVersion()
Returns the version number for this provider.

Returns:
the version number for this provider.
 o getInfo
public String 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.
 o toString
public String 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.
Overrides:
toString in class Hashtable
 o clear
public void clear()
Clears this provider so that it no longer contains the properties used to look up facilities implemented by the provider.

Overrides:
clear in class Hashtable
 o put
public Object put(Object key,
                  Object value)
Sets the key property to have the specified value.

Parameters:
key - the property key.
value - the property value.
Returns:
the previous value of the specified property (key), or null if it did not have one.
Overrides:
put in class Hashtable
 o remove
public Object remove(Object key)
Removes the key property (and its corresponding value).

Parameters:
key - the key for the property to be removed.
Returns:
the value to which the key had been mapped, or null if the key did not have a mapping.
Overrides:
remove in class Hashtable

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature