The
getProperty() method of
java.security.Provider class is used to search for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns null if the property is not found.
Syntax:
public String getProperty(String key)
Parameters: This method takes the
property key as parameter.
Return Value: This method returns the
value in this property list with the specified key value or
null if the property is not found.
Below are the examples to illustrate the
getProperty() method:
Example 1:
Output:
value is : SHA1withDSA
value is : SHA1withDSA
value is : SHA1withDSA
value is : Software
value is : sun.security.provider.JavaKeyStore$DualFormatJKS
value is : SHA
value is : sun.security.provider.SHA
value is : sun.security.provider.JavaKeyStore$CaseExactJKS
value is : Software
value is : sun.security.provider.DSA$SHA256withDSA
Example 2: