diff options
author | 2019-07-12 22:26:30 +0000 | |
---|---|---|
committer | 2019-07-12 22:26:30 +0000 | |
commit | f918e038f8f4eea2fb879edf704683877bc19849 (patch) | |
tree | 6eb10de329001f74401e8d2cae1fa33a35079d19 /auth/auth-core | |
parent | 3c06c9887d6f88524f06b46f2593f6eef640826b (diff) | |
parent | 1338680ef142f9a33ee32a00b07c7d2ae658cb3a (diff) |
Merge "Adjust Agent for none K8s"
Diffstat (limited to 'auth/auth-core')
-rw-r--r-- | auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java index e9c36017..800a8472 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java @@ -24,8 +24,8 @@ package org.onap.aaf.auth.common; import java.util.Map.Entry; import org.onap.aaf.cadi.Access; -import org.onap.aaf.cadi.CadiException; import org.onap.aaf.cadi.Access.Level; +import org.onap.aaf.cadi.CadiException; import org.onap.aaf.cadi.config.Config; public class Define { @@ -91,4 +91,16 @@ public class Define { return initialized; } + public static String getCredType(int type) { + switch(type) { + case 0: return "NoCrd"; + case 1: return "U/P"; + case 2: return "U/P2"; + case 10: return "FQI"; + case 200: return "x509"; + default: + return "n/a"; + } + } + } |