Name

Class javax.security.auth.Policy

Synopsis

This class provides the interface to the JAAS policy. The default policy is implemented by the class specified as the auth.policy.provider property in the java.security file. You can write a new implementation of this class and install it by setting that property or by calling the setPolicy( ) method of this class.

Class Definition

public abstract class javax.security.auth.Policy
    extends java.lang.Object {

    // Constructors
    protected Policy(  );

    // Class Methods
    public static Policy getPolicy(  );
    public static void setPolicy(Policy);

    // Instance Methods
    public abstract PermissionCollection getPermissions(
                                            Subject, CodeSource);
    public abstract void refresh(  );
}

Get Java Security, 2nd 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.