March 2005
Beginner to intermediate
1254 pages
104h 21m
English
Policy
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( ); }
Read now
Unlock full access