Index: java/security/AccessControlContext.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/AccessControlContext.java,v retrieving revision 1.6 diff -u -b -B -r1.6 AccessControlContext.java --- java/security/AccessControlContext.java 3 Jun 2004 06:28:26 -0000 1.6 +++ java/security/AccessControlContext.java 3 Jun 2004 06:42:02 -0000 @@ -40,18 +40,18 @@ import java.util.HashSet; /** - AccessControlContext makes system resource access decsion - based on permission rights. - - It is used for a specific context and has only one method - checkPermission. It is similar to AccessController except - that it makes decsions based on the current context instead - of the the current thread. - - It is created by call AccessController.getContext method. - - @author Mark Benvenuto - @since JDK 1.2 + * AccessControlContext makes system resource access decsion + * based on permission rights. + * + * It is used for a specific context and has only one method + * checkPermission. It is similar to AccessController except + * that it makes decsions based on the current context instead + * of the the current thread. + * + * It is created by call AccessController.getContext method. + * + * @author Mark Benvenuto + * @since 1.2 */ public final class AccessControlContext { @@ -59,11 +59,11 @@ private final DomainCombiner combiner; /** - Construct a new AccessControlContext with the specified - ProtectionDomains. context must not be - null and duplicates will be removed. - - @param context The ProtectionDomains to use + * Construct a new AccessControlContext with the specified + * ProtectionDomains. context must not be + * null and duplicates will be removed. + * + * @param context The ProtectionDomains to use */ public AccessControlContext(ProtectionDomain[]context) { @@ -76,12 +76,10 @@ } /** - Construct a new AccessControlContext with the specified - ProtectionDomains and DomainCombiner - - @param context The ProtectionDomains to use - - @since JDK 1.3 + * Construct a new AccessControlContext with the specified + * ProtectionDomains and DomainCombiner + * + * @since 1.3 */ public AccessControlContext(AccessControlContext acc, DomainCombiner combiner) @@ -101,9 +99,9 @@ } /** - Returns the Domain Combiner associated with the AccessControlContext - - @returns the DomainCombiner + * Returns the Domain Combiner associated with the AccessControlContext + * + * @return the DomainCombiner */ public DomainCombiner getDomainCombiner() { @@ -111,12 +109,12 @@ } /** - Determines whether or not the specific permission is granted - depending on the context it is within. - - @param perm a permission to check - - @throws AccessControlException if the permssion is not permitted + * Determines whether or not the specific permission is granted + * depending on the context it is within. + * + * @param perm a permission to check + * + * @throws AccessControlException if the permssion is not permitted */ public void checkPermission(Permission perm) throws AccessControlException { @@ -126,14 +124,14 @@ } /** - Checks if two AccessControlContexts are equal. - - It first checks if obj is an AccessControlContext class, and - then checks if each ProtectionDomain matches. - - @param obj The object to compare this class to - - @return true if equal, false otherwise + * Checks if two AccessControlContexts are equal. + * + * It first checks if obj is an AccessControlContext class, and + * then checks if each ProtectionDomain matches. + * + * @param obj The object to compare this class to + * + * @return true if equal, false otherwise */ public boolean equals(Object obj) { @@ -161,9 +159,9 @@ } /** - Computes a hash code of this class - - @return a hash code representing this class + * Computes a hash code of this class + * + * @return a hash code representing this class */ public int hashCode() { Index: java/security/ProtectionDomain.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/ProtectionDomain.java,v retrieving revision 1.11 diff -u -b -B -r1.11 ProtectionDomain.java --- java/security/ProtectionDomain.java 3 Jun 2004 06:28:28 -0000 1.11 +++ java/security/ProtectionDomain.java 3 Jun 2004 06:42:02 -0000 @@ -1,5 +1,5 @@ /* ProtectionDomain.java -- A security domain - Copyright (C) 1998, 2003, Free Software Foundation, Inc. + Copyright (C) 1998, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. Index: java/security/SecureClassLoader.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/SecureClassLoader.java,v retrieving revision 1.10 diff -u -b -B -r1.10 SecureClassLoader.java --- java/security/SecureClassLoader.java 3 Jun 2004 06:28:28 -0000 1.10 +++ java/security/SecureClassLoader.java 3 Jun 2004 06:42:02 -0000 @@ -1,5 +1,5 @@ /* SecureClassLoader.java --- A Secure Class Loader - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,13 +38,13 @@ package java.security; /** - A Secure Class Loader for loading classes with additional - support for specifying code source and permissions when - they are retrieved by the system policy handler. - - @since JDK 1.2 - - @author Mark Benvenuto + * A Secure Class Loader for loading classes with additional + * support for specifying code source and permissions when + * they are retrieved by the system policy handler. + * + * @since 1.2 + * + * @author Mark Benvenuto */ public class SecureClassLoader extends ClassLoader { @@ -64,18 +64,18 @@ } /** - Creates a class using an array of bytes and a - CodeSource. - - @param name the name to give the class. null if unknown. - @param b the data representing the classfile, in classfile format. - @param off the offset into the data where the classfile starts. - @param len the length of the classfile data in the array. - @param cs the CodeSource for the class or null when unknown. - - @return the class that was defined and optional CodeSource. - - @exception ClassFormatError if the byte array is not in proper classfile format. + * Creates a class using an array of bytes and a + * CodeSource. + * + * @param name the name to give the class. null if unknown. + * @param b the data representing the classfile, in classfile format. + * @param off the offset into the data where the classfile starts. + * @param len the length of the classfile data in the array. + * @param cs the CodeSource for the class or null when unknown. + * + * @return the class that was defined and optional CodeSource. + * + * @exception ClassFormatError if the byte array is not in proper classfile format. */ protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) @@ -92,14 +92,13 @@ } /** - Returns a PermissionCollection for the specified CodeSource. - The default implementation invokes - java.security.Policy.getPermissions. - - This method is called by defineClass that takes a CodeSource - arguement to build a proper ProtectionDomain for the class - being defined. - + * Returns a PermissionCollection for the specified CodeSource. + * The default implementation invokes + * java.security.Policy.getPermissions. + * + * This method is called by defineClass that takes a CodeSource + * arguement to build a proper ProtectionDomain for the class + * being defined. */ protected PermissionCollection getPermissions(CodeSource cs) { Index: java/util/PropertyPermissionCollection.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/util/PropertyPermissionCollection.java,v retrieving revision 1.4 diff -u -b -B -r1.4 PropertyPermissionCollection.java --- java/util/PropertyPermissionCollection.java 3 Jun 2004 06:28:28 -0000 1.4 +++ java/util/PropertyPermissionCollection.java 3 Jun 2004 06:42:03 -0000 @@ -1,5 +1,5 @@ /* PropertyPermissionCollection.java -- a collection of PropertyPermissions - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -103,10 +103,12 @@ /** * Returns true if this collection implies the given permission. This even * returns true for this case: - *

-

collection.add(new PropertyPermission("a.*", "read"));
-collection.add(new PropertyPermission("a.b.*", "write"));
-collection.implies(new PropertyPermission("a.b.c", "read,write"));
+ * + *
+   * collection.add(new PropertyPermission("a.*", "read"));
+   * collection.add(new PropertyPermission("a.b.*", "write"));
+   * collection.implies(new PropertyPermission("a.b.c", "read,write"));
+   * 
* * @param permission the permission to check * @return true if it is implied by this