All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.security.UnresolvedPermissionCollection Maven / Gradle / Ivy

/*

This is not an official specification document, and usage is restricted.

NOTICE


(c) 2005-2007 Sun Microsystems, Inc. All Rights Reserved.

Neither this file nor any files generated from it describe a complete specification, and they may only be used as described below. For example, no permission is given for you to incorporate this file, in whole or in part, in an implementation of a Java specification.

Sun Microsystems Inc. owns the copyright in this file and it is provided to you for informative, as opposed to normative, use. The file and any files generated from it may be used to generate other informative documentation, such as a unified set of documents of API signatures for a platform that includes technologies expressed as Java APIs. The file may also be used to produce "compilation stubs," which allow applications to be compiled and validated for such platforms.

Any work generated from this file, such as unified javadocs or compiled stub files, must be accompanied by this notice in its entirety.

This work corresponds to the API signatures of JSR 219: Foundation Profile 1.1. In the event of a discrepency between this work and the JSR 219 specification, which is available at http://www.jcp.org/en/jsr/detail?id=219, the latter takes precedence. */ package java.security; import java.util.*; import java.io.ObjectStreamField; import java.io.ObjectOutputStream; import java.io.ObjectInputStream; import java.io.IOException; /** * A UnresolvedPermissionCollection stores a collection * of UnresolvedPermission permissions. * * @see java.security.Permission * @see java.security.Permissions * @see java.security.UnresolvedPermission * * @version 1.9 00/02/02 * * @author Roland Schemers * * @serial include */ final class UnresolvedPermissionCollection extends PermissionCollection implements java.io.Serializable { /** * Create an empty UnresolvedPermissionCollection object. * */ public UnresolvedPermissionCollection() { } /** * Adds a permission to this UnresolvedPermissionCollection. * The key for the hash is the unresolved permission's type (class) name. * * @param permission the Permission object to add. */ public void add(Permission permission) { } /** * always returns false for unresolved permissions * */ public boolean implies(Permission permission) { return false; } /** * Returns an enumeration of all the UnresolvedPermission lists in the * container. * * @return an enumeration of all the UnresolvedPermission objects. */ public Enumeration elements() { return null; } private static final long serialVersionUID = -7176153071733132400L; /** * @serialField permissions java.util.Hashtable * A table of the UnresolvedPermissions keyed on type, value is Vector * of permissions */ private static final ObjectStreamField[] serialPersistentFields = { new ObjectStreamField("permissions", Hashtable.class), }; /** * @serialData Default field. */ private void writeObject(ObjectOutputStream out) throws IOException { } /* * Reads in a Hashtable in which the values are Vectors of * UnresolvedPermissions and saves them in the perms field. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy