summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/authorization
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/authorization
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/authorization')
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/AuthzManagerProxy.java8
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/AuthzMgrPlugin.java12
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/AuthzResources.java4
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/AuthzToken.java22
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzAccessDenied.java2
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzException.java12
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzInternalError.java2
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzMgrNotFound.java2
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzMgrPluginNotFound.java2
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownOperation.java2
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownProtectedRes.java2
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/IAuthzManager.java32
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java26
13 files changed, 64 insertions, 64 deletions
diff --git a/base/common/src/com/netscape/certsrv/authorization/AuthzManagerProxy.java b/base/common/src/com/netscape/certsrv/authorization/AuthzManagerProxy.java
index 58a5264ba..acd3b201c 100644
--- a/base/common/src/com/netscape/certsrv/authorization/AuthzManagerProxy.java
+++ b/base/common/src/com/netscape/certsrv/authorization/AuthzManagerProxy.java
@@ -20,7 +20,7 @@ package com.netscape.certsrv.authorization;
/**
* A class represents an authorization manager. It contains an
* authorization manager instance and its state (enable or not).
- *
+ *
* @version $Revision$, $Date$
*/
public class AuthzManagerProxy {
@@ -29,7 +29,7 @@ public class AuthzManagerProxy {
/**
* Constructor
- *
+ *
* @param enable true if the authzMgr is enabled; false otherwise
* @param mgr authorization manager instance
*/
@@ -40,7 +40,7 @@ public class AuthzManagerProxy {
/**
* Returns the state of the authorization manager instance
- *
+ *
* @return true if the state of the authorization manager instance is
* enabled; false otherwise.
*/
@@ -50,7 +50,7 @@ public class AuthzManagerProxy {
/**
* Returns an authorization manager instance.
- *
+ *
* @return an authorization manager instance
*/
public IAuthzManager getAuthzManager() {
diff --git a/base/common/src/com/netscape/certsrv/authorization/AuthzMgrPlugin.java b/base/common/src/com/netscape/certsrv/authorization/AuthzMgrPlugin.java
index e47e58171..011ee294e 100644
--- a/base/common/src/com/netscape/certsrv/authorization/AuthzMgrPlugin.java
+++ b/base/common/src/com/netscape/certsrv/authorization/AuthzMgrPlugin.java
@@ -20,7 +20,7 @@ package com.netscape.certsrv.authorization;
/**
* This class represents a registered authorization manager plugin.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public class AuthzMgrPlugin {
@@ -30,7 +30,7 @@ public class AuthzMgrPlugin {
/**
* Constructs a AuthzManager plugin.
- *
+ *
* @param id authz manager implementation name
* @param classPath class path
*/
@@ -41,7 +41,7 @@ public class AuthzMgrPlugin {
/**
* Returns an authorization manager implementation name
- *
+ *
* @return an authorization manager implementation name
*/
public String getId() {
@@ -50,7 +50,7 @@ public class AuthzMgrPlugin {
/**
* Returns a classpath of a AuthzManager plugin
- *
+ *
* @return a classpath of a AuthzManager plugin
*/
public String getClassPath() {
@@ -59,7 +59,7 @@ public class AuthzMgrPlugin {
/**
* Returns a visibility of the plugin
- *
+ *
* @return a visibility of the plugin
*/
public boolean isVisible() {
@@ -68,7 +68,7 @@ public class AuthzMgrPlugin {
/**
* Sets visibility of the plugin
- *
+ *
* @param visibility visibility of the plugin
*/
public void setVisible(boolean visibility) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/AuthzResources.java b/base/common/src/com/netscape/certsrv/authorization/AuthzResources.java
index 13d33c212..5f736aa02 100644
--- a/base/common/src/com/netscape/certsrv/authorization/AuthzResources.java
+++ b/base/common/src/com/netscape/certsrv/authorization/AuthzResources.java
@@ -22,7 +22,7 @@ import java.util.ListResourceBundle;
/**
* A class represents a resource bundle for the authorization subsystem
* <P>
- *
+ *
* @deprecated
* @version $Revision$, $Date$
*/
@@ -30,7 +30,7 @@ public class AuthzResources 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/authorization/AuthzToken.java b/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java
index 262902e62..1272a3dd3 100644
--- a/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java
+++ b/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java
@@ -30,7 +30,7 @@ import com.netscape.certsrv.base.IAttrSet;
* authorization happened, name of the resource, type of operation performed
* on the resource.
* <p>
- *
+ *
* @version $Revision$, $Date$
*/
public class AuthzToken implements IAttrSet {
@@ -77,13 +77,13 @@ public class AuthzToken implements IAttrSet {
/**
* Constructs an instance of a authorization token.
* The token by default contains the following attributes: <br>
- *
+ *
* <pre>
* "authzMgrInstName" - The authorization manager instance name.
* "authzMgrImplName" - The authorization manager plugin name.
* "authzTime" - The - The time of authorization.
* </pre>
- *
+ *
* @param authzMgr The authorization manager that created this Token.
*/
public AuthzToken(IAuthzManager authzMgr) {
@@ -95,7 +95,7 @@ public class AuthzToken implements IAttrSet {
/**
* Get the value of an attribute in the AuthzToken
- *
+ *
* @param attrName The attribute name
* @return The value of attrName if any.
*/
@@ -106,7 +106,7 @@ public class AuthzToken implements IAttrSet {
/**
* Used by an Authorization manager to set an attribute and value
* in the AuthzToken.
- *
+ *
* @param attrName The name of the attribute
* @param value The value of the attribute to set.
*/
@@ -116,7 +116,7 @@ public class AuthzToken implements IAttrSet {
/**
* Removes an attribute in the AuthzToken
- *
+ *
* @param attrName The name of the attribute to remove.
*/
public void delete(String attrName) {
@@ -125,7 +125,7 @@ public class AuthzToken implements IAttrSet {
/**
* Enumerate all attribute names in the AuthzToken.
- *
+ *
* @return Enumeration of all attribute names in this AuthzToken.
*/
public Enumeration<String> getElements() {
@@ -134,7 +134,7 @@ public class AuthzToken implements IAttrSet {
/**
* Enumerate all attribute values in the AuthzToken.
- *
+ *
* @return Enumeration of all attribute names in this AuthzToken.
*/
public Enumeration<Object> getVals() {
@@ -144,7 +144,7 @@ public class AuthzToken implements IAttrSet {
/**
* Gets the name of the authorization manager instance that created
* this token.
- *
+ *
* @return The name of the authorization manager instance that created
* this token.
*/
@@ -155,7 +155,7 @@ public class AuthzToken implements IAttrSet {
/**
* Gets the plugin name of the authorization manager that created this
* token.
- *
+ *
* @return The plugin name of the authorization manager that created this
* token.
*/
@@ -165,7 +165,7 @@ public class AuthzToken implements IAttrSet {
/**
* Gets the time of authorization.
- *
+ *
* @return The time of authorization
*/
public Date getAuthzTime() {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzAccessDenied.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzAccessDenied.java
index 9fc7777c7..9b50176c8 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzAccessDenied.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzAccessDenied.java
@@ -29,7 +29,7 @@ public class EAuthzAccessDenied extends EAuthzException {
/**
* Constructs a exception for access denied by Authz manager
- *
+ *
* @param errorString Detailed error message.
*/
public EAuthzAccessDenied(String errorString) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzException.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzException.java
index 65d95a571..873ada1af 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzException.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzException.java
@@ -22,7 +22,7 @@ import com.netscape.certsrv.base.EBaseException;
/**
* This class represents authorization exceptions.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public class EAuthzException extends EBaseException {
@@ -39,7 +39,7 @@ public class EAuthzException extends EBaseException {
/**
* Constructs a authz exception
* <P>
- *
+ *
* @param msgFormat exception details
*/
public EAuthzException(String msgFormat) {
@@ -49,7 +49,7 @@ public class EAuthzException extends EBaseException {
/**
* Constructs a authz exception with a parameter.
* <p>
- *
+ *
* @param msgFormat exception details in message string format
* @param param message string parameter
*/
@@ -60,7 +60,7 @@ public class EAuthzException extends EBaseException {
/**
* Constructs a authz exception with a exception parameter.
* <P>
- *
+ *
* @param msgFormat exception details in message string format
* @param param system exception
*/
@@ -71,7 +71,7 @@ public class EAuthzException extends EBaseException {
/**
* Constructs a authz exception with a list of parameters.
* <P>
- *
+ *
* @param msgFormat the message format.
* @param params list of message format parameters
*/
@@ -81,7 +81,7 @@ public class EAuthzException extends EBaseException {
/**
* Returns the resource bundle name
- *
+ *
* @return resource bundle name
*/
protected String getBundleName() {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzInternalError.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzInternalError.java
index 2afe2c747..82588b622 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzInternalError.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzInternalError.java
@@ -29,7 +29,7 @@ public class EAuthzInternalError extends EAuthzException {
/**
* Constructs an authorization internal error exception
- *
+ *
* @param errorString error with a detailed message.
*/
public EAuthzInternalError(String errorString) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrNotFound.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrNotFound.java
index a920d37ac..f3efc656c 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrNotFound.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrNotFound.java
@@ -29,7 +29,7 @@ public class EAuthzMgrNotFound extends EAuthzException {
/**
* Constructs a exception for a missing required authorization manager
- *
+ *
* @param errorString Detailed error message.
*/
public EAuthzMgrNotFound(String errorString) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrPluginNotFound.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrPluginNotFound.java
index 43ae6edcd..5b183aa50 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrPluginNotFound.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzMgrPluginNotFound.java
@@ -29,7 +29,7 @@ public class EAuthzMgrPluginNotFound extends EAuthzException {
/**
* Constructs a exception for a missing authorization plugin
- *
+ *
* @param errorString Detailed error message.
*/
public EAuthzMgrPluginNotFound(String errorString) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownOperation.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownOperation.java
index ce061ddd2..b2bcb9c9d 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownOperation.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownOperation.java
@@ -29,7 +29,7 @@ public class EAuthzUnknownOperation extends EAuthzException {
/**
* Constructs a exception for an operation unknown to the authorization manager
- *
+ *
* @param errorString Detailed error message.
*/
public EAuthzUnknownOperation(String errorString) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownProtectedRes.java b/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownProtectedRes.java
index 5cb2d7276..5848c620c 100644
--- a/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownProtectedRes.java
+++ b/base/common/src/com/netscape/certsrv/authorization/EAuthzUnknownProtectedRes.java
@@ -29,7 +29,7 @@ public class EAuthzUnknownProtectedRes extends EAuthzException {
/**
* Constructs a exception for a protected resource unknown to the authorization manager
- *
+ *
* @param errorString Detailed error message.
*/
public EAuthzUnknownProtectedRes(String errorString) {
diff --git a/base/common/src/com/netscape/certsrv/authorization/IAuthzManager.java b/base/common/src/com/netscape/certsrv/authorization/IAuthzManager.java
index 8b52b3928..871f05230 100644
--- a/base/common/src/com/netscape/certsrv/authorization/IAuthzManager.java
+++ b/base/common/src/com/netscape/certsrv/authorization/IAuthzManager.java
@@ -32,7 +32,7 @@ import com.netscape.certsrv.evaluators.IAccessEvaluator;
* Authorization Manager interface needs to be implemented by all
* authorization managers.
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public interface IAuthzManager {
@@ -40,7 +40,7 @@ public interface IAuthzManager {
/**
* Get the name of this authorization manager instance.
* <p>
- *
+ *
* @return String the name of this authorization manager.
*/
public String getName();
@@ -49,12 +49,12 @@ public interface IAuthzManager {
* Get implementation name of authorization manager plugin.
* <p>
* An example of an implementation name will be:
- *
+ *
* <PRE>
* com.netscape.cms.BasicAclAuthz
* </PRE>
* <p>
- *
+ *
* @return The name of the authorization manager plugin.
*/
public String getImplName();
@@ -66,13 +66,13 @@ public interface IAuthzManager {
* <p>
* The accessInfo format is determined by each individual authzmgr. For example, for BasicAclAuthz, The accessInfo
* is the resACLs, whose format should conform to the following:
- *
+ *
* <pre>
* <resource ID>:right-1[,right-n]:[allow,deny](right(s))<evaluatorType>=<value>:<comment for this resource acl
* </pre>
* <P>
* Example: resTurnKnob:left,right:allow(left) group="lefties":door knobs for lefties
- *
+ *
* @param accessInfo the access info string in the format specified in the authorization manager
* @exception EBaseException error parsing the accessInfo
*/
@@ -81,7 +81,7 @@ public interface IAuthzManager {
/**
* Check if the user is authorized to perform the given operation on the
* given resource.
- *
+ *
* @param authToken the authToken associated with a user.
* @param resource - the protected resource name
* @param operation - the protected resource operation name
@@ -97,7 +97,7 @@ public interface IAuthzManager {
/**
* Initialize this authorization manager.
- *
+ *
* @param name The name of this authorization manager instance.
* @param implName The name of the authorization manager plugin.
* @param config The configuration store for this authorization manager.
@@ -117,7 +117,7 @@ public interface IAuthzManager {
* The configuration parameters returned is passed to the
* console so configuration for instances of this
* implementation can be made through the console.
- *
+ *
* @return a list of names for configuration parameters.
* @exception EBaseException If an internal error occurred
*/
@@ -126,21 +126,21 @@ public interface IAuthzManager {
/**
* Get the configuration store for this authorization manager.
- *
+ *
* @return The configuration store of this authorization manager.
*/
public IConfigStore getConfigStore();
/**
* Get ACL entries
- *
+ *
* @return enumeration of ACL entries.
*/
public Enumeration<ACL> getACLs();
/**
* Get individual ACL entry for the given name of entry.
- *
+ *
* @param target The name of the ACL entry
* @return The ACL entry.
*/
@@ -148,7 +148,7 @@ public interface IAuthzManager {
/**
* Update ACLs in the database
- *
+ *
* @param id The name of the ACL entry (ie, resource id)
* @param rights The allowable rights for this resource
* @param strACLs The value of the ACL entry
@@ -160,14 +160,14 @@ public interface IAuthzManager {
/**
* Get all registered evaluators.
- *
+ *
* @return All registered evaluators.
*/
public Enumeration<IAccessEvaluator> aclEvaluatorElements();
/**
* Register new evaluator
- *
+ *
* @param type Type of evaluator
* @param evaluator Value of evaluator
*/
@@ -175,7 +175,7 @@ public interface IAuthzManager {
/**
* Return a table of evaluators
- *
+ *
* @return A table of evaluators
*/
public Hashtable<String, IAccessEvaluator> getAccessEvaluators();
diff --git a/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java b/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java
index d8ccc8a83..b96499a77 100644
--- a/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java
+++ b/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java
@@ -27,7 +27,7 @@ import com.netscape.certsrv.base.ISubsystem;
/**
* An interface that represents an authorization component
* <P>
- *
+ *
* @version $Revision$, $Date$
*/
public interface IAuthzSubsystem extends ISubsystem {
@@ -60,7 +60,7 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* authorize the user associated with the given authToken for a given
* operation with the given authorization manager name
- *
+ *
* @param authzMgrName The authorization manager name
* @param authToken the authenticaton token associated with a user
* @param resource the resource protected by the authorization system
@@ -77,7 +77,7 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* Adds (registers) the given authorization manager.
- *
+ *
* @param name The authorization manager name
* @param authzMgr The authorization manager instance.
*/
@@ -85,14 +85,14 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* Deletes (deregisters) the given authorization manager.
- *
+ *
* @param name The authorization manager name to delete.
*/
public void delete(String name);
/**
* Gets the Authorization manager instance of the specified name.
- *
+ *
* @param name The authorization manager's name.
* @return an authorization manager interface
*/
@@ -101,14 +101,14 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* Gets an enumeration of authorization managers registered to the
* authorization component.
- *
+ *
* @return a list of authorization managers
*/
public Enumeration<IAuthzManager> getAuthzManagers();
/**
* Initialize authz info - usually used for BasicAclAuthz
- *
+ *
* @param authzMgrName name of the authorization manager
* @param accessInfo string representation of the ACL
* @exception EBaseException if authorization manager is not found
@@ -117,14 +117,14 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* Gets an enumeration of authorization manager plugins.
- *
+ *
* @return list of authorization manager plugins
*/
public Enumeration<AuthzMgrPlugin> getAuthzManagerPlugins();
/**
* Gets a single authorization manager plugin implementation
- *
+ *
* @param name given authorization plugin name
* @return authorization manager plugin
*/
@@ -132,7 +132,7 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* Log error message.
- *
+ *
* @param level log level
* @param msg error message
*/
@@ -140,21 +140,21 @@ public interface IAuthzSubsystem extends ISubsystem {
/**
* Get a hashtable containing all authentication plugins.
- *
+ *
* @return all authentication plugins.
*/
public Hashtable<String, AuthzMgrPlugin> getPlugins();
/**
* Get a hashtable containing all authentication instances.
- *
+ *
* @return all authentication instances.
*/
public Hashtable<String, AuthzManagerProxy> getInstances();
/**
* Get an authorization manager interface for the given name.
- *
+ *
* @param name given authorization manager name.
* @return an authorization manager interface
*/