GeezerVison is showing docs.oracle.com — Provider (Java Platform SE 7 )
Java™ Platform Standard Ed. 7
java.security
Class Provider
-
-
Nested Class Summary
Nested Classes
| Modifier and Type |
Class and Description |
static class |
Provider.Service
The description of a security service.
|
-
Constructor Summary
Constructors
| Modifier |
Constructor and Description |
protected |
Provider(String name,
double version,
String info)
Constructs a provider with the specified name, version number,
and information.
|
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
void |
clear()
Clears this provider so that it no longer contains the properties
used to look up facilities implemented by the provider.
|
Enumeration<Object> |
elements()
Returns an enumeration of the values in this hashtable.
|
Set<Map.Entry<Object,Object>> |
entrySet()
Returns an unmodifiable Set view of the property entries contained
in this Provider.
|
Object |
get(Object key)
Returns the value to which the specified key is mapped,
or null if this map contains no mapping for the key.
|
String |
getInfo()
Returns a human-readable description of the provider and its
services.
|
String |
getName()
Returns the name of this provider.
|
String |
getProperty(String key)
Searches for the property with the specified key in this property list.
|
Provider.Service |
getService(String type,
String algorithm)
Get the service describing this Provider's implementation of the
specified type of this algorithm or alias.
|
Set<Provider.Service> |
getServices()
Get an unmodifiable Set of all services supported by
this Provider.
|
double |
getVersion()
Returns the version number for this provider.
|
Enumeration<Object> |
keys()
Returns an enumeration of the keys in this hashtable.
|
Set<Object> |
keySet()
Returns an unmodifiable Set view of the property keys contained in
this provider.
|
void |
load(InputStream inStream)
Reads a property list (key and element pairs) from the input stream.
|
Object |
put(Object key,
Object value)
Sets the key property to have the specified
value.
|
void |
putAll(Map<?,?> t)
Copies all of the mappings from the specified Map to this provider.
|
protected void |
putService(Provider.Service s)
Add a service.
|
Object |
remove(Object key)
Removes the key property (and its corresponding
value).
|
protected void |
removeService(Provider.Service s)
|
String |
toString()
Returns a string with the name and the version number
of this provider.
|
Collection<Object> |
values()
Returns an unmodifiable Collection view of the property values
contained in this provider.
|
-
Methods inherited from class java.util.Properties
getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
-
-
Constructor Detail
-
Provider
protected Provider(String name,
double version,
String info)
Constructs a provider with the specified name, version number,
and information.
- Parameters:
name - the provider name.version - the provider version number.info - a description of the provider and its services.
-
Method Detail
-
clear
public void clear()
Clears this provider so that it no longer contains the properties
used to look up facilities implemented by the provider.
First, if there is a security manager, its
checkSecurityAccess method is called with the string
"clearProviderProperties."+name (where name
is the provider name) to see if it's ok to clear this provider.
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("clearProviderProperties."+name)
permission.
- Specified by:
clear in interface Map<Object,Object>
- Overrides:
clear in class Hashtable<Object,Object>
- Throws:
SecurityException - if a security manager exists and its SecurityManager.checkSecurityAccess(java.lang.String) method
denies access to clear this provider- Since:
- 1.2
-
putAll
public void putAll(Map<?,?> t)
Copies all of the mappings from the specified Map to this provider.
These mappings will replace any properties that this provider had
for any of the keys currently in the specified Map.
- Specified by:
putAll in interface Map<Object,Object>
- Overrides:
putAll in class Hashtable<Object,Object>
- Parameters:
t - mappings to be stored in this map- Since:
- 1.2
Java™ Platform Standard Ed. 7
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|