java.security
Class Provider
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--java.security.Provider
All Implemented Interfaces:
Serializable, Map, Cloneable, 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 verion 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.
Author:- Aaron M. Renn (arenn@urbanophile.com)
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.
Parameters:
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
.
get
public Object get(java.lang.Object key)
Parameters:
getInfo
public String getInfo()
This method returns a textual description of the Provider
.
Returns:
- A description of the
Provider
.
getName
public String getName()
This method returns the name assigned to this Provider
.
Returns:
getVersion
public double getVersion()
This method retunrs the version number of this Provider
.
Returns:
- The
Provider
's version number.
put
public 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.
]
java.lang.SecurityManager.checkSecurityAccess(java.lang.String)
method denies access to set property values.
Since:- Classpath 0.4+cvs, JDK 1.2
Parameters:
Returns:
- The previous value of the specified property (
key
),
or null
if it did not have one.
Throws:
See Also:
remove
public Object remove(java.lang.Object key)
This method removes the specified key entry (and its associated value)
from the property mapping list.
Parameters:
Returns:
- The previous value for this key, or
null
if no
previous value.
toString
public String toString()
This method returns a String
representation of this
object. This will include the Provider
name and
version number.
Returns:
- A
String
representation of this object.
Providers are installed by name and verion 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.