summaryrefslogtreecommitdiffstats
path: root/pki/base/util/src/netscape/security/acl/PermissionImpl.java
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2011-12-07 16:58:12 -0500
committerAde Lee <alee@redhat.com>2011-12-07 16:58:12 -0500
commit32150d3ee32f8ac27118af7c792794b538c78a2f (patch)
tree52dd96f664a6fa51be25b28b6f10adc5f2c9f660 /pki/base/util/src/netscape/security/acl/PermissionImpl.java
parentf05d58a46795553beb8881039cc922974b40db34 (diff)
downloadpki-32150d3ee32f8ac27118af7c792794b538c78a2f.tar.gz
pki-32150d3ee32f8ac27118af7c792794b538c78a2f.tar.xz
pki-32150d3ee32f8ac27118af7c792794b538c78a2f.zip
Formatting
Formatted project according to eclipse project settings
Diffstat (limited to 'pki/base/util/src/netscape/security/acl/PermissionImpl.java')
-rw-r--r--pki/base/util/src/netscape/security/acl/PermissionImpl.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/pki/base/util/src/netscape/security/acl/PermissionImpl.java b/pki/base/util/src/netscape/security/acl/PermissionImpl.java
index bfd8861cb..2b4d4f471 100644
--- a/pki/base/util/src/netscape/security/acl/PermissionImpl.java
+++ b/pki/base/util/src/netscape/security/acl/PermissionImpl.java
@@ -20,8 +20,9 @@ package netscape.security.acl;
import java.security.acl.Permission;
/**
- * The PermissionImpl class implements the permission
- * interface for permissions that are strings.
+ * The PermissionImpl class implements the permission interface for permissions
+ * that are strings.
+ *
* @author Satish Dharmaraj
*/
public class PermissionImpl implements Permission {
@@ -30,33 +31,35 @@ public class PermissionImpl implements Permission {
/**
* Construct a permission object using a string.
+ *
* @param permission the stringified version of the permission.
*/
public PermissionImpl(String permission) {
- this.permission = permission;
+ this.permission = permission;
}
/**
- * This function returns true if the object passed matches the permission
+ * This function returns true if the object passed matches the permission
* represented in this interface.
+ *
* @param another The Permission object to compare with.
* @return true if the Permission objects are equal, false otherwise
*/
public boolean equals(Object another) {
- if (another instanceof Permission) {
- Permission p = (Permission) another;
- return permission.equals(p.toString());
- } else {
- return false;
- }
+ if (another instanceof Permission) {
+ Permission p = (Permission) another;
+ return permission.equals(p.toString());
+ } else {
+ return false;
+ }
}
-
+
/**
* Prints a stringified version of the permission.
+ *
* @return the string representation of the Permission.
*/
public String toString() {
- return permission;
+ return permission;
}
}
-