< prev index next >

## src/java.base/share/classes/java/security/Policy.java

Print this page

    *** 81,12 ***
    --- 81,18 ---
       * @since 1.2
       * @see java.security.Provider
       * @see java.security.ProtectionDomain
       * @see java.security.Permission
       * @see java.security.Security security properties
    +  * @deprecated This class is only useful in conjunction with
    +  *       {@linkplain SecurityManager the Security Manager}, which is deprecated
    +  *       and subject to removal in a future release. Consequently, this class
    +  *       is also deprecated and subject to removal. There is no replacement for
    +  *       the Security Manager or this class.
       */

    + @Deprecated(since="17", forRemoval=true)
      public abstract class Policy {

          /**
           * Constructor for subclasses to call.
           */

    *** 808,11 ***
    --- 814,17 ---

          /**
           * This represents a marker interface for Policy parameters.
           *
           * @since 1.6
    +      * @deprecated This class is only useful in conjunction with
    +      *       {@linkplain SecurityManager the Security Manager}, which is
    +      *       deprecated and subject to removal in a future release.
    +      *       Consequently, this class is also deprecated and subject to removal.
    +      *       There is no replacement for the Security Manager or this class.
           */
    +     @Deprecated(since="17", forRemoval=true)
          public static interface Parameters { }

          /**
           * This class represents a read-only empty PermissionCollection object that
           * is returned from the {@code getPermissions(CodeSource)} and

< prev index next >