This method of the RegistryPermission Class adds a rule that allows the specified access types to the registry keys/values specified by the pattern string.
public void includeRule(int access, String pattern);
access | The access types being added. Must be one of the following types: OPEN, READ, WRITE, DELETE, or CREATE, or any combination of these types used with the OR operator (|). |
pattern | The registry keys or values to which the specified access type is being added. This parameter must be of the form accepted by a WildcardExpression with the ESCAPED flag enabled. |