diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-10-03 17:31:22 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-10-03 17:31:22 +0200 |
| commit | e64e6fada90a93be37f171277b484630db263266 (patch) | |
| tree | ec7bacd2774834ccbc18abd3a851cdc0f78af811 /src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java | |
| parent | a2a78637799ee2cfa94f8f38cd389fb2e33295ac (diff) | |
Adapt to new Exceptions
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java b/src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java index 1ddb452..d97fa1f 100644 --- a/src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java +++ b/src/main/java/com/c2kernel/lookup/ldap/LDAPAuthManager.java @@ -1,7 +1,7 @@ package com.c2kernel.lookup.ldap;
-import com.c2kernel.common.InvalidDataException;
-import com.c2kernel.common.ObjectNotFoundException;
+import com.c2kernel.common.InvalidData;
+import com.c2kernel.common.ObjectNotFound;
import com.c2kernel.process.Gateway;
import com.c2kernel.process.auth.Authenticator;
import com.c2kernel.utils.Logger;
@@ -16,7 +16,7 @@ public class LDAPAuthManager implements Authenticator { @Override
public boolean authenticate(String agentName,
- String password, String resource) throws InvalidDataException, ObjectNotFoundException {
+ String password, String resource) throws InvalidData, ObjectNotFound {
ldapProps = new LDAPProperties(Gateway.getProperties());
@@ -42,18 +42,18 @@ public class LDAPAuthManager implements Authenticator { }
else
{
- throw new InvalidDataException("Cannot log in. Some connection properties are not set.", "");
+ throw new InvalidData("Cannot log in. Some connection properties are not set.");
}
}
@Override
- public boolean authenticate(String resource) throws InvalidDataException, ObjectNotFoundException {
+ public boolean authenticate(String resource) throws InvalidData, ObjectNotFound {
ldapProps = new LDAPProperties(Gateway.getProperties());
if (ldapProps.mUser == null || ldapProps.mUser.length()==0 ||
ldapProps.mPassword == null || ldapProps.mPassword.length()==0)
- throw new InvalidDataException("LDAP root user properties not found in config.");
+ throw new InvalidData("LDAP root user properties not found in config.");
try {
mLDAPConn = LDAPLookupUtils.createConnection(ldapProps);
return true;
|
