Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-14 19:18:16 -0400
committerRyan D. Brooks2010-09-14 19:18:16 -0400
commitd3bc26df78b2ead537913a710cabdee7722ecb47 (patch)
tree1c029f6fccf169503395ca91f02488f6353c3e03 /plugins
parent12e7089c1c3e8d1010f057e829e30aa7ead7a703 (diff)
downloadorg.eclipse.osee-d3bc26df78b2ead537913a710cabdee7722ecb47.tar.gz
org.eclipse.osee-d3bc26df78b2ead537913a710cabdee7722ecb47.tar.xz
org.eclipse.osee-d3bc26df78b2ead537913a710cabdee7722ecb47.zip
refactor: Remove unnecessary exception OseeInvalidAuthenticationProtocolException
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/AuthenticationManager.java5
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeInvalidAuthenticationProtocolException.java32
2 files changed, 2 insertions, 35 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/AuthenticationManager.java b/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/AuthenticationManager.java
index c00d42ddc7..fa1eea48c4 100644
--- a/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/AuthenticationManager.java
+++ b/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/AuthenticationManager.java
@@ -18,7 +18,6 @@ import org.eclipse.osee.framework.core.data.IOseeUserInfo;
import org.eclipse.osee.framework.core.data.OseeCredential;
import org.eclipse.osee.framework.core.data.SystemUser;
import org.eclipse.osee.framework.core.exception.OseeAuthenticationException;
-import org.eclipse.osee.framework.core.exception.OseeInvalidAuthenticationProtocolException;
import org.eclipse.osee.framework.core.server.IAuthenticationManager;
import org.eclipse.osee.framework.core.server.IAuthenticationProvider;
@@ -53,7 +52,7 @@ public class AuthenticationManager implements IAuthenticationManager {
return provider.authenticate(credential);
}
}
- throw new OseeInvalidAuthenticationProtocolException(String.format("Invalid protocol [%s]",
+ throw new OseeAuthenticationException(String.format("Invalid protocol [%s]",
credential.getAuthenticationProtocol()));
}
@@ -82,7 +81,7 @@ public class AuthenticationManager implements IAuthenticationManager {
return provider.asOseeUserId(credential);
}
}
- throw new OseeInvalidAuthenticationProtocolException(String.format("Invalid protocol [%s]",
+ throw new OseeAuthenticationException(String.format("Invalid protocol [%s]",
credential.getAuthenticationProtocol()));
}
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeInvalidAuthenticationProtocolException.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeInvalidAuthenticationProtocolException.java
deleted file mode 100644
index 7a22bca9ef..0000000000
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeInvalidAuthenticationProtocolException.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.exception;
-
-/**
- * @author Roberto E. Escobar
- */
-public class OseeInvalidAuthenticationProtocolException extends OseeAuthenticationException {
-
- private static final long serialVersionUID = 1890728724625261131L;
-
- public OseeInvalidAuthenticationProtocolException(String message, Throwable cause) {
- super(message, cause);
- }
-
- public OseeInvalidAuthenticationProtocolException(String message) {
- super(message);
- }
-
- public OseeInvalidAuthenticationProtocolException(Throwable cause) {
- super(cause);
- }
-
-}

Back to the top