Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
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


public abstract class Provider

extends Properties

implements 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:

Constructor Summary

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.

Method Summary

voidclear()

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.
java.lang.Objectget(java.lang.Object key)

java.lang.StringgetInfo()

This method returns a textual description of the Provider.
java.lang.StringgetName()

This method returns the name assigned to this Provider.
doublegetVersion()

This method retunrs the version number of this Provider.
java.lang.Objectput(java.lang.Object key, java.lang.Object value)

Sets the key property to have the specified value.
java.lang.Objectremove(java.lang.Object key)

This method removes the specified key entry (and its associated value) from the property mapping list.
java.lang.StringtoString()

This method returns a String representation of this object.

Constructor Details

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:


Method Details

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:


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:


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:Parameters:

Returns:

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:


toString

public String toString()

This method returns a String representation of this object. This will include the Provider name and version number.

Returns: