com.novell.java.security
Class Provider
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--com.novell.java.security.Provider
- public abstract class Provider
- extends java.util.Properties
Represents a provider for the Java Security API. A provider
implements some or all parts of Java Security, including:
- Algorithms (such as DSA, RSA, MD5 or SHA-1).
- Key generation and management facilities (such as for
algorithm-specific keys).
Each provider has a name and a version number, and is configured
in each runtime in which it is installed. The default JDK
provider is the SUN Provider. See The Provider Class in Sun's
Java Cryptography Architecture API Specification & Reference
documentation for information about how providers work and how
to install them.
- See Also:
- Serialized Form
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary |
protected |
Provider(java.lang.String name,
double version,
java.lang.String info)
Constructs a provider with the specified name, version number,
and information string. |
Method Summary |
void |
clear()
Clears this provider so that it no longer contains the properties
used to look up facilities implemented by the provider. |
java.lang.String |
getInfo()
Returns a description of the provider and its services in
String format. |
java.lang.String |
getName()
Returns the name of this provider. |
double |
getVersion()
Returns the version number for this provider. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Sets the key property to have the specified value. |
java.lang.Object |
remove(java.lang.Object key)
Removes the key property and its corresponding
value. |
java.lang.String |
toString()
Returns a string containing the name and the version number
of this provider. |
Methods inherited from class java.util.Properties |
getProperty,
getProperty,
list,
list,
load,
propertyNames,
save,
setProperty,
store |
Methods inherited from class java.util.Hashtable |
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
putAll,
rehash,
size,
values |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Provider
protected Provider(java.lang.String name,
double version,
java.lang.String info)
- Constructs a provider with the specified name, version number,
and information string.
- Parameters:
name
- The name of the provider.version
- The provider version number.info
- A description of the provider and its services.
getName
public java.lang.String getName()
- Returns the name of this provider.
- Returns:
- The name of this provider.
getVersion
public double getVersion()
- Returns the version number for this provider.
- Returns:
- The version number for this provider.
getInfo
public java.lang.String getInfo()
- Returns a description of the provider and its services in
String format. It may be an HTML page, with relevant links.
- Returns:
- A description of the provider and its services.
toString
public java.lang.String toString()
- Returns a string containing the name and the version number
of this provider.
- Returns:
- A string with the name and the version number
of this provider.
- Overrides:
- toString in class java.util.Hashtable
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 java.util.Hashtable
- Since:
- JDK1.2
put
public java.lang.Object put(java.lang.Object key,
java.lang.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 java.util.Hashtable
- Since:
- JDK1.2
remove
public java.lang.Object remove(java.lang.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 java.util.Hashtable
- Since:
- JDK1.2