Module java.base
Package java.security

# Class Policy

=
@Deprecated(since="17"forRemoval=true)
public abstract class Policy
extends java.lang.Object

## Nested Types

- = Parameters

## Fields

- =
  public static final java.security.PermissionCollection UNSUPPORTED_EMPTY_COLLECTION

## Constructors

- =
  public Policy()

## Methods

- =
  public static java.security.Policy getInstance(java.lang.String arg0, java.security.Policy.Parameters arg1) throws java.security.NoSuchAlgorithmException
- =
  public static java.security.Policy getInstance(java.lang.String arg0, java.security.Policy.Parameters arg1, java.lang.String arg2) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
- =
  public static java.security.Policy getInstance(java.lang.String arg0, java.security.Policy.Parameters arg1, java.security.Provider arg2) throws java.security.NoSuchAlgorithmException
- =
  public java.security.Policy.Parameters getParameters()
- =
  public java.security.PermissionCollection getPermissions(java.security.CodeSource arg0)
- =
  public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain arg0)
- =
  public static java.security.Policy getPolicy()
- =
  public java.security.Provider getProvider()
- =
  public java.lang.String getType()
- =
  public boolean implies(java.security.ProtectionDomain arg0, java.security.Permission arg1)
- =
  public void refresh()
- =
  public static void setPolicy(java.security.Policy arg0)

## Summary

No differences.