summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/acls
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-05 14:49:11 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-09 10:03:25 -0500
commit7c7b9d023cd466c1771068badc020dab36beb553 (patch)
tree178877eb83e25336be7577953945fbdb0b9e1a15 /base/common/src/com/netscape/certsrv/acls
parentda1e6e2f49f66fd46c8039ff1aa4386309fba8f4 (diff)
downloadpki-7c7b9d023cd466c1771068badc020dab36beb553.tar.gz
pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.xz
pki-7c7b9d023cd466c1771068badc020dab36beb553.zip
Removed whitespaces from Java code.
Whitespaces in Java code have been removed with the following command: find . -not -path .git -name *.java -exec sed -i 's/[[:blank:]]\+$//' {} \; Ticket #134
Diffstat (limited to 'base/common/src/com/netscape/certsrv/acls')
-rw-r--r--base/common/src/com/netscape/certsrv/acls/ACL.java26
-rw-r--r--base/common/src/com/netscape/certsrv/acls/ACLEntry.java32
-rw-r--r--base/common/src/com/netscape/certsrv/acls/ACLsResources.java4
-rw-r--r--base/common/src/com/netscape/certsrv/acls/EACLsException.java22
-rw-r--r--base/common/src/com/netscape/certsrv/acls/IACL.java12
-rw-r--r--base/common/src/com/netscape/certsrv/acls/IACLEntry.java4
6 files changed, 50 insertions, 50 deletions
diff --git a/base/common/src/com/netscape/certsrv/acls/ACL.java b/base/common/src/com/netscape/certsrv/acls/ACL.java
index 508793ddf..ea962975c 100644
--- a/base/common/src/com/netscape/certsrv/acls/ACL.java
+++ b/base/common/src/com/netscape/certsrv/acls/ACL.java
@@ -29,7 +29,7 @@ import java.util.Vector;
* An <code>ACL</code> may contain one or more <code>ACLEntry</code>. However, in case of multiple <code>ACLEntry</code>
* , a subject must pass ALL of the <code>ACLEntry</code> evaluation for permission to be granted
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public class ACL implements IACL, java.io.Serializable {
@@ -55,7 +55,7 @@ public class ACL implements IACL, java.io.Serializable {
* Class constructor.
* Constructs an access control list associated
* with a resource name
- *
+ *
* @param name resource name
* @param rights applicable rights defined for this resource
* @param resourceACLs the entire ACL specification. For example:
@@ -79,7 +79,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Sets the name of the resource governed by this
* access control.
- *
+ *
* @param name name of the resource
*/
public void setName(String name) {
@@ -89,7 +89,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Retrieves the name of the resource governed by
* this access control.
- *
+ *
* @return name of the resource
*/
public String getName() {
@@ -98,7 +98,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Retrieves the exact string of the resourceACLs
- *
+ *
* @return resource's acl
*/
public String getResourceACLs() {
@@ -108,7 +108,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Sets the description of the resource governed by this
* access control.
- *
+ *
* @param description Description of the protected resource
*/
public void setDescription(String description) {
@@ -118,7 +118,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Retrieves the description of the resource governed by
* this access control.
- *
+ *
* @return Description of the protected resource
*/
public String getDescription() {
@@ -127,7 +127,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Adds an ACL entry to this list.
- *
+ *
* @param entry the <code>ACLEntry</code> to be added to this resource
*/
public void addEntry(ACLEntry entry) {
@@ -136,7 +136,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Returns ACL entries.
- *
+ *
* @return enumeration for the <code>ACLEntry</code> vector
*/
public Enumeration<ACLEntry> entries() {
@@ -145,7 +145,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Returns the string reprsentation.
- *
+ *
* @return the string representation of the ACL entries in the
* following format:
* <resource name>[<ACLEntry1>,<ACLEntry 2>,...<ACLEntry N>]
@@ -166,7 +166,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Adds an rights entry to this list.
- *
+ *
* @param right The right to be added for this ACL
*/
public void addRight(String right) {
@@ -175,7 +175,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Tells if the permission is one of the defined "rights"
- *
+ *
* @param permission permission to be checked
* @return true if it's one of the "rights"; false otherwise
*/
@@ -185,7 +185,7 @@ public class ACL implements IACL, java.io.Serializable {
/**
* Returns rights entries.
- *
+ *
* @return enumeration of rights defined for this ACL
*/
public Enumeration<String> rights() {
diff --git a/base/common/src/com/netscape/certsrv/acls/ACLEntry.java b/base/common/src/com/netscape/certsrv/acls/ACLEntry.java
index 2c1b7c3ea..3d18c263c 100644
--- a/base/common/src/com/netscape/certsrv/acls/ACLEntry.java
+++ b/base/common/src/com/netscape/certsrv/acls/ACLEntry.java
@@ -24,7 +24,7 @@ import java.util.StringTokenizer;
/**
* A class represents an ACI entry of an access control list.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public class ACLEntry implements IACLEntry, java.io.Serializable {
@@ -46,7 +46,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Checks if this ACL entry is set to negative.
- *
+ *
* @return true if this ACL entry expression is for "deny";
* false if this ACL entry expression is for "allow"
*/
@@ -63,9 +63,9 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Sets the ACL entry string
- *
+ *
* @param s string in the following format:
- *
+ *
* <PRE>
* allow|deny (right[,right...]) attribute_expression
* </PRE>
@@ -76,9 +76,9 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Gets the ACL Entry String
- *
+ *
* @return ACL Entry string in the following format:
- *
+ *
* <PRE>
* allow|deny (right[,right...]) attribute_expression
* </PRE>
@@ -90,7 +90,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Adds permission to this entry. Permission must be one of the
* "rights" defined for each protected resource in its ACL
- *
+ *
* @param acl the acl instance that this aclEntry is associated with
* @param permission one of the "rights" defined for each
* protected resource in its ACL
@@ -106,7 +106,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Returns a list of permissions associated with
* this entry.
- *
+ *
* @return a list of permissions for this ACL entry
*/
public Enumeration<String> permissions() {
@@ -115,7 +115,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Sets the expression associated with this entry.
- *
+ *
* @param expressions the evaluator expressions. For example,
* group="Administrators"
*/
@@ -125,7 +125,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Retrieves the expression associated with this entry.
- *
+ *
* @return the evaluator expressions. For example,
* group="Administrators"
*/
@@ -136,7 +136,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Checks to see if this <code>ACLEntry</code> contains a
* particular permission
- *
+ *
* @param permission one of the "rights" defined for each
* protected resource in its ACL
* @return true if permission contained in the permission list
@@ -148,7 +148,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Checks if this entry has the given permission.
- *
+ *
* @param permission one of the "rights" defined for each
* protected resource in its ACL
* @return true if the permission is allowed; false if the
@@ -169,13 +169,13 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Parse string in the following format:
- *
+ *
* <PRE>
* allow|deny (right[,right...]) attribute_expression
* </PRE>
- *
+ *
* into an instance of the <code>ACLEntry</code> class
- *
+ *
* @param acl the acl instance associated with this aclentry
* @param aclEntryString aclEntryString in the specified format
* @return an instance of the <code>ACLEntry</code> class
@@ -219,7 +219,7 @@ public class ACLEntry implements IACLEntry, java.io.Serializable {
/**
* Returns the string representation of this ACLEntry
- *
+ *
* @return string representation of this ACLEntry
*/
public String toString() {
diff --git a/base/common/src/com/netscape/certsrv/acls/ACLsResources.java b/base/common/src/com/netscape/certsrv/acls/ACLsResources.java
index bf3ea4a28..d886eb383 100644
--- a/base/common/src/com/netscape/certsrv/acls/ACLsResources.java
+++ b/base/common/src/com/netscape/certsrv/acls/ACLsResources.java
@@ -23,7 +23,7 @@ import java.util.ListResourceBundle;
* A class represents a resource bundle for the entire ACL component.
* system.
* <P>
- *
+ *
* @deprecated
* @version $Revision$, $Date$
*/
@@ -31,7 +31,7 @@ public class ACLsResources extends ListResourceBundle {
/**
* Returns the content of this resource.
- *
+ *
* @return the content of this resource.
*/
public Object[][] getContents() {
diff --git a/base/common/src/com/netscape/certsrv/acls/EACLsException.java b/base/common/src/com/netscape/certsrv/acls/EACLsException.java
index 8d204091e..b72796ec5 100644
--- a/base/common/src/com/netscape/certsrv/acls/EACLsException.java
+++ b/base/common/src/com/netscape/certsrv/acls/EACLsException.java
@@ -29,7 +29,7 @@ import com.netscape.certsrv.base.MessageFormatter;
* allows AccessManager to be easily integrated into any
* existing code.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public class EACLsException extends EBaseException {
@@ -46,7 +46,7 @@ public class EACLsException extends EBaseException {
/**
* Constructs an acls exception.
* <P>
- *
+ *
* @param msgFormat exception details
*/
public EACLsException(String msgFormat) {
@@ -56,12 +56,12 @@ public class EACLsException extends EBaseException {
/**
* Constructs a base exception with a parameter. For example,
- *
+ *
* <PRE>
* new EACLsException(&quot;failed to load {0}&quot;, fileName);
* </PRE>
* <P>
- *
+ *
* @param msgFormat exception details in message string format
* @param param message string parameter
*/
@@ -75,7 +75,7 @@ public class EACLsException extends EBaseException {
* Constructs a base exception. It can be used to carry
* a system exception that may contain information about
* the context. For example,
- *
+ *
* <PRE>
* try {
* ...
@@ -84,7 +84,7 @@ public class EACLsException extends EBaseException {
* }
* </PRE>
* <P>
- *
+ *
* @param msgFormat exception details in message string format
* @param param system exception
*/
@@ -98,7 +98,7 @@ public class EACLsException extends EBaseException {
* Constructs a base exception with a list of parameters
* that will be substituted into the message format.
* <P>
- *
+ *
* @param msgFormat exception details in message string format
* @param params list of message format parameters
*/
@@ -110,7 +110,7 @@ public class EACLsException extends EBaseException {
/**
* Returns a list of parameters.
* <P>
- *
+ *
* @return list of message format parameters
*/
public Object[] getParameters() {
@@ -119,7 +119,7 @@ public class EACLsException extends EBaseException {
/**
* String representation for the corresponding exception.
- *
+ *
* @return String representation for the corresponding exception.
*/
public String toString() {
@@ -128,7 +128,7 @@ public class EACLsException extends EBaseException {
/**
* Returns string representation for the corresponding exception.
- *
+ *
* @param locale client specified locale for string representation.
* @return String representation for the corresponding exception.
*/
@@ -139,7 +139,7 @@ public class EACLsException extends EBaseException {
/**
* Return the class name of the resource bundle.
- *
+ *
* @return class name of the resource bundle.
*/
protected String getBundleName() {
diff --git a/base/common/src/com/netscape/certsrv/acls/IACL.java b/base/common/src/com/netscape/certsrv/acls/IACL.java
index aad733722..4126c884c 100644
--- a/base/common/src/com/netscape/certsrv/acls/IACL.java
+++ b/base/common/src/com/netscape/certsrv/acls/IACL.java
@@ -25,42 +25,42 @@ import java.util.Enumeration;
* enforcer can verify the ACLs with the current
* context to see if the corresponding resource is accessible.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public interface IACL {
/**
* Returns the name of the current ACL.
- *
+ *
* @return the name of the current ACL.
*/
public String getName();
/**
* Returns the description of the current ACL.
- *
+ *
* @return the description of the current ACL.
*/
public String getDescription();
/**
* Returns a list of access rights of the current ACL.
- *
+ *
* @return a list of access rights
*/
public Enumeration<String> rights();
/**
* Returns a list of entries of the current ACL.
- *
+ *
* @return a list of entries
*/
public Enumeration<ACLEntry> entries();
/**
* Verifies if permission is granted.
- *
+ *
* @param permission one of the applicable rights
* @return true if the given permission is one of the applicable rights; false otherwise.
*/
diff --git a/base/common/src/com/netscape/certsrv/acls/IACLEntry.java b/base/common/src/com/netscape/certsrv/acls/IACLEntry.java
index ff806f155..3b5a1c070 100644
--- a/base/common/src/com/netscape/certsrv/acls/IACLEntry.java
+++ b/base/common/src/com/netscape/certsrv/acls/IACLEntry.java
@@ -20,14 +20,14 @@ package com.netscape.certsrv.acls;
/**
* A class represents an entry of access control list.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public interface IACLEntry {
/**
* Returns the ACL entry string of the entry.
- *
+ *
* @return the ACL entry string of the entry.
*/
public String getACLEntryString();