java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
java.security.Provider
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public abstract class Provider
- extends java.util.Properties
- implements java.io.Serializable
This class represents a Java security architecture service provider.
The services provided by a such a provider can range from security
algorithms to key generation.
Providers are installed by name and version number. There is one
standard provider supplied with the class library. This is the
"GNU" provider, which can also be accessed by the alias "SUN" for
compatibility with the JDK.
- Version:
- 0.0
| Nested classes inherited from class java.util.Hashtable |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.Hashtable |
|
|
Constructor Summary |
protected |
Provider(java.lang.String name,
double version,
java.lang.String info)
This method initializes a new instance of Provider to have
the specified name, version, and description information. |
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
| Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, size, values |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
info
private java.lang.String info
- This is a textual description of the provider
name
private java.lang.String name
- This is the name of the provider
version
private double version
- This is the version number of the provider
Provider
protected Provider(java.lang.String name,
double version,
java.lang.String info)
- This method initializes a new instance of
Provider to have
the specified name, version, and description information.
getName
public java.lang.String getName()
- This method returns the name assigned to this
Provider.
getVersion
public double getVersion()
- This method retunrs the version number of this
Provider.
getInfo
public java.lang.String getInfo()
- This method returns a textual description of the
Provider.
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Sets the key property to have the specified value.
NOT IMPLEMENTED YET[
First, if there is a security manager, its checkSecurityAccess
method is called with the string "putProviderProperty."+name, where name is
the provider name, to see if it's ok to set this provider's property
values.
If the default implementation of checkSecurityAccess is used
(that is, that method is not overriden), then this results in a call to the
security manager's checkPermission method with a
SecurityPermission("putProviderProperty."+name)
permission.
]
- Specified by:
put in interface java.util.Map
- Since:
- Classpath 0.4+cvs, JDK 1.2
get
public java.lang.Object get(java.lang.Object key)
- Description copied from class:
java.util.Hashtable
- Return the value in this Hashtable associated with the supplied key,
or
null if the key maps to nothing.
- Specified by:
get in interface java.util.Map
remove
public java.lang.Object remove(java.lang.Object key)
- This method removes the specified key entry (and its associated value)
from the property mapping list.
- Specified by:
remove in interface java.util.Map
clear
public void clear()
- This method clears the entire property list such that it no longer
contains the properties used to look up the services provided by
the
Provider.
- Specified by:
clear in interface java.util.Map
toString
public java.lang.String toString()
- This method returns a
String representation of this
object. This will include the Provider name and
version number.
toCanonicalKey
private java.lang.Object toCanonicalKey(java.lang.Object key)