Name
Policy
Synopsis
This
deprecated class represents a
Subject-based security policy. Because the JAAS API (this package and
its subpackages) were introduced as an extension to the core Java
platform, this class was required to augment the
java.security.Policy
class which, prior to Java
1.4, had no provisions for Subject-based authorization. In Java 1.4,
however, java.security.Policy
has been extended to
represent security policies based on code origin, code signers, and
subjects. Thus, this class is no longer required and has been
deprecated.
public abstract class Policy { // Protected Constructors protected Policy( ); // Public Class Methods public static javax.security.auth.Policy getPolicy( ); public static void setPolicy(javax.security.auth.Policy policy); // Public Instance Methods public abstract java.security.PermissionCollection getPermissions(Subject subject, java.security.CodeSource cs); public abstract void refresh( ); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.