Renamed tenant to domain 08/10108/1
authorLiem Nguyen <liem_m_nguyen@hp.com>
Wed, 20 Aug 2014 17:52:25 +0000 (10:52 -0700)
committerLiem Nguyen <liem_m_nguyen@hp.com>
Wed, 20 Aug 2014 17:52:25 +0000 (10:52 -0700)
Change-Id: Ifdad2cd30543e1392f1780fc7157f96c2188106f
Signed-off-by: Liem Nguyen <liem_m_nguyen@hp.com>
aaa-authn-api/src/main/java/org/opendaylight/aaa/api/CredentialAuth.java

index fd734d828eb44585a62a575a9eb343d7de1ef891..9f9289ec52241a75749bde9c075704afdecf94d7 100644 (file)
@@ -10,15 +10,18 @@ package org.opendaylight.aaa.api;
 
 /**
  * An interface for direct authentication with some given credentials.
+ *
+ * @author liemmn
  */
 public interface CredentialAuth<T extends Credentials> {
 
     /**
-     * Authenticate a claim with the given credentials and tenant scope.
+     * Authenticate a claim with the given credentials and domain scope.
      *
      * @param cred credentials
-     * @param tenant tenant name
+     * @param domain domain name, or null if not known
+     * @throws AuthenticationException if failed authentication
      * @return authenticated claim
      */
-    Claim authenticate(T cred, String tenant) throws AuthenticationException;
+    Claim authenticate(T cred, String domain) throws AuthenticationException;
 }