|
From: <ha...@us...> - 2008-04-07 08:01:56
|
Revision: 1959
http://cogkit.svn.sourceforge.net/cogkit/?rev=1959&view=rev
Author: hategan
Date: 2008-04-07 01:01:52 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
a security context is not the place to throw such an exception
Modified Paths:
--------------
trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/ftp/FTPSecurityContextImpl.java
Modified: trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/ftp/FTPSecurityContextImpl.java
===================================================================
--- trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/ftp/FTPSecurityContextImpl.java 2008-04-07 08:01:05 UTC (rev 1958)
+++ trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/file/ftp/FTPSecurityContextImpl.java 2008-04-07 08:01:52 UTC (rev 1959)
@@ -10,7 +10,6 @@
import java.util.Hashtable;
import org.apache.log4j.Logger;
-import org.globus.cog.abstraction.impl.common.task.InvalidSecurityContextException;
import org.globus.cog.abstraction.interfaces.SecurityContext;
public class FTPSecurityContextImpl implements SecurityContext {
@@ -40,11 +39,7 @@
}
}
- public Object getCredentials() throws InvalidSecurityContextException {
- if (credentials == null) {
- throw new InvalidSecurityContextException(
- "FTP provider cannot handle default credentials. Please provide a valid FTP credential");
- }
+ public Object getCredentials() {
return this.credentials;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|