java.lang.Object | ||||
↳ | java.util.Dictionary<K, V> | |||
↳ | java.util.Hashtable<K, V> | |||
↳ | java.util.Properties | |||
↳ | java.security.Provider |
Known Direct Subclasses |
Provider
is the abstract superclass for all security providers in the
Java security infrastructure.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Provider.Service | Service represents a service in the Java Security infrastructure. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.Properties
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
Provider with its name, version and
description. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clears all properties used to look up services implemented by this
Provider . | |||||||||||
Returns a set of the mappings contained in this
Hashtable . | |||||||||||
Returns a description of the services being provided.
| |||||||||||
Returns the name of this provider.
| |||||||||||
Returns the service with the specified
type implementing the
specified algorithm , or null if no such implementation
exists. | |||||||||||
Returns an unmodifiable
Set of all services registered by this
provider. | |||||||||||
Returns the version number for the services being provided.
| |||||||||||
Returns a set of the keys contained in this
Hashtable . | |||||||||||
Loads properties from the specified
InputStream . | |||||||||||
Maps the specified
key property name to the specified value . | |||||||||||
Copies all from the provided map to this
Provider . | |||||||||||
Removes the specified
key and its associated value from this
Provider . | |||||||||||
Returns a string containing a concise, human-readable description of
this
Provider including its name and its version. | |||||||||||
Returns a collection of the values contained in this
Hashtable . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
Service to this Provider . | |||||||||||
Removes a previously registered
Service from this Provider . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.util.Properties
| |||||||||||
From class java.util.Hashtable
| |||||||||||
From class java.util.Dictionary
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface java.util.Map
|
Constructs a new instance of Provider
with its name, version and
description.
name | the name of the provider. |
---|---|
version | the version of the provider. |
info | a description of the provider. |
Clears all properties used to look up services implemented by this
Provider
.
If a SecurityManager
is installed, code calling this method needs
the SecurityPermission
clearProviderProperties.NAME
(where NAME is the provider name) to be granted, otherwise a SecurityException
will be thrown.
SecurityException | if a SecurityManager is installed and the caller does
not have permission to invoke this method.
|
---|
Returns a set of the mappings contained in this Hashtable
. Each
element in the set is a Map.Entry
. The set is backed by this
Hashtable
so changes to one are reflected by the other. The set
does not support adding.
Returns a description of the services being provided.
Returns the name of this provider.
Returns the service with the specified type
implementing the
specified algorithm
, or null
if no such implementation
exists.
If two services match the requested type and algorithm, the one added
with the putService(Service)
is returned (as opposed to the one
added via put(Object, Object)
.
type | the type of the service (for example KeyPairGenerator ) |
---|---|
algorithm | the algorithm name (case insensitive) |
null
if no such implementation
exists
Returns an unmodifiable Set
of all services registered by this
provider.
Set
of all services registered by this
provider
Returns the version number for the services being provided.
Returns a set of the keys contained in this Hashtable
. The set
is backed by this Hashtable
so changes to one are reflected by
the other. The set does not support adding.
Loads properties from the specified InputStream
. The encoding is
ISO-8859-1.
inStream | the InputStream |
---|
IOException |
---|
Maps the specified key
property name to the specified value
.
If a SecurityManager
is installed, code calling this method needs
the SecurityPermission
putProviderProperty.NAME
(where
NAME is the provider name) to be granted, otherwise a SecurityException
will be thrown.
key | the name of the property. |
---|---|
value | the value of the property. |
key
,or null
if it did not have one.SecurityException | if a SecurityManager is installed and the caller does
not have permission to invoke this method.
|
---|
Copies all from the provided map to this Provider
.
If a SecurityManager
is installed, code calling this method needs
the SecurityPermission
putProviderProperty.NAME
(where
NAME is the provider name) to be granted, otherwise a SecurityException
will be thrown.
t | the mappings to copy to this provider. |
---|
SecurityException | if a SecurityManager is installed and the caller does
not have permission to invoke this method.
|
---|
Removes the specified key
and its associated value from this
Provider
.
If a SecurityManager
is installed, code calling this method needs
the SecurityPermission
removeProviderProperty.NAME
(where
NAME is the provider name) to be granted, otherwise a SecurityException
will be thrown.
key | the name of the property |
---|
key
,or
null
if no mapping was presentSecurityException | if a SecurityManager is installed and the caller does
not have the permission to invoke this method.
|
---|
Returns a string containing a concise, human-readable description of
this Provider
including its name and its version.
Provider
.
Returns a collection of the values contained in this Hashtable
.
The collection is backed by this Hashtable
so changes to one are
reflected by the other. The collection does not support adding.
Adds a Service
to this Provider
. If a service with the
same name was registered via this method, it is replace.
If a SecurityManager
is installed, code calling this method needs
the SecurityPermission
putProviderProperty.NAME
(where
NAME is the provider name) to be granted, otherwise a SecurityException
will be thrown.
s | the Service to register |
---|
SecurityException | if a SecurityManager is installed and the caller does
not have permission to invoke this method
|
---|
Removes a previously registered Service
from this Provider
.
If a SecurityManager
is installed, code calling this method needs
the SecurityPermission
removeProviderProperty.NAME
(where
NAME is the provider name) to be granted, otherwise a SecurityException
will be thrown.
s | the Service to remove |
---|
SecurityException | if a SecurityManager is installed and the caller does
not have permission to invoke this method |
---|---|
NullPointerException | if s is null
|