✗
public final class Security
extends java.lang.Object
Methods
- ✓public static int addProvider(java.security.Provider arg0)
- ✓@Deprecated
public static java.lang.String getAlgorithmProperty(java.lang.String arg0, java.lang.String arg1) - ✗public static java.util.Set<java.lang.String> getAlgorithms(java.lang.String arg0)Comparing jdk-20-ga and jdk-21+35
getAlgorithms
Returns a Set ofStringobjects containing the names of all available algorithms or types for the specified Java cryptographic service (e.g.,Signature,MessageDigest,Cipher,Mac,KeyStore). Returns an empty set if there is no provider that supports the specified service or ifserviceNameisnull. For a complete list of Java cryptographic services, please see the Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=security_guide_jca.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_jca.Java Cryptography Architecture (JCA) Reference Guide. Note: the returned set is immutable.- Parameters:
serviceName- the name of the Java cryptographic service (e.g.,Signature,MessageDigest,Cipher,Mac,KeyStore). Note: this parameter is case-insensitive.- Returns:
- a Set of
Stringobjects containing the names of all available algorithms or types for the specified Java cryptographic service or an empty set if no provider supports the specified service. - Since:
- 1.4
- ✗public static java.lang.String getProperty(java.lang.String arg0)Comparing jdk-20-ga and jdk-21+35
getProperty
Gets a security property value.First, if there is a security manager, its
checkPermissionmethod is called with ajava.security.SecurityPermission("getProperty."+key)permission to see if it's ok to retrieve the specified security property value.- Parameters:
key- the key of the property being retrieved.- Returns:
- the value of the security property corresponding to , or
nullif there is no property with that key. - Throws:
SecurityException- if a security manager exists and itsSecurityManager.checkPermission(java.security.Permission)method denies access to retrieve the specified security property valueNullPointerException- is if key isnull- See Also:
- ✓public static java.security.Provider getProvider(java.lang.String arg0)
- ✓public static java.security.Provider[] getProviders()
- ✓public static java.security.Provider[] getProviders(java.lang.String arg0)
- ✓public static java.security.Provider[] getProviders(java.util.Map<java.lang.String, java.lang.String> arg0)
- ✓public static int insertProviderAt(java.security.Provider arg0, int arg1)
- ✓public static void removeProvider(java.lang.String arg0)
- ✓public static void setProperty(java.lang.String arg0, java.lang.String arg1)
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| getAlgorithms(String) | 1 | 1 | ||||||||
| getProperty(String) | 1 | 2 | 3 | |||||||
| Total | 1 | 3 | 4 | |||||||