From e3ff2b2bb624babf5209b08e9745024e940c1744 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sat, 11 Oct 2003 19:00:07 +0000 Subject: 2003-10-11 Michael Koch * java/security/Key.java, * java/security/PrivateKey.java, * java/security/PublicKey.java, * java/security/acl/Acl.java, * java/security/acl/AclEntry.java, * java/security/acl/Group.java, * java/security/acl/Owner.java, * java/security/acl/Permission.java, * java/security/cert/X509Extension.java, * java/security/interfaces/DSAKey.java, * java/security/interfaces/DSAKeyPairGenerator.java, * java/security/interfaces/DSAParams.java, * java/security/interfaces/DSAPrivateKey.java, * java/security/interfaces/DSAPublicKey.java, * java/security/interfaces/RSAKey.java, * java/security/interfaces/RSAPrivateCrtKey.java, * java/security/interfaces/RSAPrivateKey.java, * java/security/interfaces/RSAPublicKey.java: Removed redundant modifiers. From-SVN: r72360 --- libjava/java/security/acl/Acl.java | 26 +++++++++++++++----------- libjava/java/security/acl/AclEntry.java | 20 ++++++++++---------- libjava/java/security/acl/Group.java | 8 ++++---- libjava/java/security/acl/Owner.java | 6 +++--- libjava/java/security/acl/Permission.java | 4 ++-- 5 files changed, 34 insertions(+), 30 deletions(-) (limited to 'libjava/java/security/acl') diff --git a/libjava/java/security/acl/Acl.java b/libjava/java/security/acl/Acl.java index 07d07ec..4229c92 100644 --- a/libjava/java/security/acl/Acl.java +++ b/libjava/java/security/acl/Acl.java @@ -69,7 +69,7 @@ public interface Acl extends Owner * * @return The name of this ACL */ - public abstract String getName(); + String getName(); /** * This method sets the name of the ACL @@ -79,7 +79,7 @@ public interface Acl extends Owner * * @exception NotOwnerException If the caller is not an owner of this ACL. */ - public abstract void setName(Principal caller, String name) + void setName(Principal caller, String name) throws NotOwnerException; /** @@ -88,11 +88,13 @@ public interface Acl extends Owner * @param caller The Principal requesting the addition * @param entry The ACL entry to add * - * @return true if the entry was added, false if there is already an entry of the same type for the Principal. + * @return true if the entry was added, false + * if there is already an entry of the same type for the + * Principal. * * @exception NotOwnerException If the caller is not an owner of this ACL. */ - public abstract boolean addEntry(Principal caller, AclEntry entry) + boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException; /** @@ -101,11 +103,12 @@ public interface Acl extends Owner * @param caller The Principal requesting the deletion. * @param entry The ACL entry to delete * - * @return true if the entry was deleted, or false if this entry was not part of the ACL to begin with + * @return true if the entry was deleted, or false + * if this entry was not part of the ACL to begin with * * @exception NotOwnerException If the caller is not an owner of this ACL. */ - public abstract boolean removeEntry(Principal caller, AclEntry entry) + boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException; /** @@ -114,7 +117,7 @@ public interface Acl extends Owner * * @return An enumeration of the ACL entries */ - public abstract Enumeration entries(); + Enumeration entries(); /** * This method tests whether or not the specified Principal @@ -123,9 +126,10 @@ public interface Acl extends Owner * @param user The Principal to test * @param perm The Permission to test for * - * @return true if the user has been granted the permission, false otherwise + * @return true if the user has been granted the permission, + * false otherwise */ - public abstract boolean checkPermission(Principal user, Permission perm); + boolean checkPermission(Principal user, Permission perm); /** * This method returns a list of Permission's that are granted @@ -138,12 +142,12 @@ public interface Acl extends Owner * * @return A list of permissions for the Principal. */ - public abstract Enumeration getPermissions(Principal user); + Enumeration getPermissions(Principal user); /** * This method returns the ACL as a String * * @return A String representation of this ACL */ - public abstract String toString(); + String toString(); } diff --git a/libjava/java/security/acl/AclEntry.java b/libjava/java/security/acl/AclEntry.java index 4c3b6cd..0cb99a8 100644 --- a/libjava/java/security/acl/AclEntry.java +++ b/libjava/java/security/acl/AclEntry.java @@ -63,7 +63,7 @@ public interface AclEntry extends Cloneable * * @return The Principal for this ACL entry */ - public abstract Principal getPrincipal(); + Principal getPrincipal(); /** * This method sets ths Principal associated with this @@ -74,7 +74,7 @@ public interface AclEntry extends Cloneable * * @return true if the Principal was successfully set or false if this entry already has a Principal. */ - public abstract boolean setPrincipal(Principal user); + boolean setPrincipal(Principal user); /** * This method sets this ACL entry to be a negative entry, indicating @@ -82,14 +82,14 @@ public interface AclEntry extends Cloneable * to the entry's Principal. Note that there is no way to * undo this operation. */ - public abstract void setNegativePermissions(); + void setNegativePermissions(); /** * This method tests whether or not this ACL entry is a negative entry or not. * * @return true if this ACL entry is negative, false otherwise */ - public abstract boolean isNegative(); + boolean isNegative(); /** * This method adds the specified permission to this ACL entry. @@ -98,7 +98,7 @@ public interface AclEntry extends Cloneable * * @return true if the permission was added or false if it was already set for this entry */ - public abstract boolean addPermission(Permission permission); + boolean addPermission(Permission permission); /** * This method deletes the specified permission to this ACL entry. @@ -107,7 +107,7 @@ public interface AclEntry extends Cloneable * * @return true if the permission was successfully deleted or false if the permission was not part of this ACL to begin with */ - public abstract boolean removePermission(Permission perm); + boolean removePermission(Permission perm); /** * This method tests whether or not the specified permission is associated @@ -117,7 +117,7 @@ public interface AclEntry extends Cloneable * * @return true if this permission is associated with this entry or false otherwise */ - public abstract boolean checkPermission(Permission permission); + boolean checkPermission(Permission permission); /** * This method returns a list of all Permission objects @@ -125,19 +125,19 @@ public interface AclEntry extends Cloneable * * @return A list of permissions for this ACL entry */ - public abstract Enumeration permissions(); + Enumeration permissions(); /** * This method returns this object as a String. * * @return A String representation of this object */ - public abstract String toString(); + String toString(); /** * This method returns a clone of this ACL entry * * @return A clone of this ACL entry */ - public abstract Object clone(); + Object clone(); } diff --git a/libjava/java/security/acl/Group.java b/libjava/java/security/acl/Group.java index 281af24..10718a7 100644 --- a/libjava/java/security/acl/Group.java +++ b/libjava/java/security/acl/Group.java @@ -59,7 +59,7 @@ public interface Group extends Principal * * @return true if the user was successfully added or false if the user is already a member */ - public abstract boolean addMember(Principal user); + boolean addMember(Principal user); /** * This method deletes a member from the group. @@ -68,7 +68,7 @@ public interface Group extends Principal * * @return true if the user was successfully deleted or false if the user is not a member of the group */ - public abstract boolean removeMember(Principal user); + boolean removeMember(Principal user); /** * This method tests whether or not a given Principal is a @@ -78,7 +78,7 @@ public interface Group extends Principal * * @return true if the user is member, false otherwise */ - public abstract boolean isMember(Principal member); + boolean isMember(Principal member); /** * This method returns a list of all members of the group as an @@ -86,5 +86,5 @@ public interface Group extends Principal * * @return The list of all members of the group */ - public abstract Enumeration members(); + Enumeration members(); } diff --git a/libjava/java/security/acl/Owner.java b/libjava/java/security/acl/Owner.java index e34e412..7732fc7 100644 --- a/libjava/java/security/acl/Owner.java +++ b/libjava/java/security/acl/Owner.java @@ -64,7 +64,7 @@ public interface Owner * * @exception NotOwnerException If the caller is not already an owner of this ACL */ - public abstract boolean addOwner(Principal caller, Principal owner) + boolean addOwner(Principal caller, Principal owner) throws NotOwnerException; /** @@ -82,7 +82,7 @@ public interface Owner * @exception NotOwnerException If the caller is not already an owner of this ACL * @exception LastOwnerException If completing the operation would delete the last ACL owner */ - public abstract boolean deleteOwner(Principal caller, Principal owner) + boolean deleteOwner(Principal caller, Principal owner) throws NotOwnerException, LastOwnerException; /** @@ -91,5 +91,5 @@ public interface Owner * * @return true if the Principal is an owner, false otherwise */ - public abstract boolean isOwner(Principal owner); + boolean isOwner(Principal owner); } diff --git a/libjava/java/security/acl/Permission.java b/libjava/java/security/acl/Permission.java index 7112523..ca5000f 100644 --- a/libjava/java/security/acl/Permission.java +++ b/libjava/java/security/acl/Permission.java @@ -56,12 +56,12 @@ public interface Permission * * @return true if the specified permission is the same as this one, false otherwise */ - public abstract boolean equals(Object perm); + boolean equals (Object perm); /** * This method returns this Permission as a String. * * @return A String representing this permission. */ - public String toString(); + String toString(); } -- cgit v1.1