The ReflectionPermission Class contains the following methods:
adjustPermission adjusts the permission object with some run-time state.
check determines whether the permission object allows the specified action.
combine creates and returns a new ReflectionPermission object that is a combination of the current permission object and the specified permission object.
compareSet compares the ReflectionPermission instance with a specified permission object.
copy retrieves a copy of the ReflectionPermission instance.
decode decodes a source according to the specified tag.
encode encodes a source according to the specified tag.
getAllowedAccess retrieves the types of classes that the permission object allows access to, based on a reflective access type.
getAllowedDeclaredAccess retrieves the types of classes that the permission object allows declared access to.
getAllowedPublicAccess retrieves the types of classes that the permission object allows public access to.
getAssociatedLoader retrieves the class loader associated with this permission object.
mapFormat retrieves a permission-specific tag when given an encoding format.
reset resets the permission object to a state in which it allows no reflection access.
setAllowedDeclaredAccess sets the types of classes that the permission object allows declared reflective access to.
setAllowedPublicAccess sets the types of classes that the permission object allows public reflective access to.
setAssociatedLoader sets the class loader that this permission is associated with.
supportedFormats retrieves a list of supported formats.
toString converts the permission object to its string representation.