Add a service. If a service of the same type with the same algorithm
name exists and it was added using putService(),
it is replaced by the new service.
This method also places information about this service
in the provider's Hashtable values in the format described in the
Java Cryptography Architecture API Specification & Reference .
Also, 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.
s | the Service to add |
SecurityException
| if a security manager exists and its java.lang.SecurityManager.checkSecurityAccess method denies
access to set property values. | |
NullPointerException | if s is null |
Diagram: Security