summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/authentication
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/certsrv/authentication')
-rw-r--r--base/common/src/com/netscape/certsrv/authentication/AuthToken.java4
-rw-r--r--base/common/src/com/netscape/certsrv/authentication/IAuthToken.java9
2 files changed, 13 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/authentication/AuthToken.java b/base/common/src/com/netscape/certsrv/authentication/AuthToken.java
index 1b5bf2350..827278711 100644
--- a/base/common/src/com/netscape/certsrv/authentication/AuthToken.java
+++ b/base/common/src/com/netscape/certsrv/authentication/AuthToken.java
@@ -112,6 +112,10 @@ public class AuthToken implements IAuthToken {
set(TOKEN_AUTHTIME, new Date());
}
+ public Object get(String attrName) {
+ return mAttrs.get(attrName);
+ }
+
public String getInString(String attrName) {
return (String) mAttrs.get(attrName);
}
diff --git a/base/common/src/com/netscape/certsrv/authentication/IAuthToken.java b/base/common/src/com/netscape/certsrv/authentication/IAuthToken.java
index e469f3786..3c03cc1f5 100644
--- a/base/common/src/com/netscape/certsrv/authentication/IAuthToken.java
+++ b/base/common/src/com/netscape/certsrv/authentication/IAuthToken.java
@@ -55,6 +55,15 @@ public interface IAuthToken {
* @exception EBaseException on attribute handling errors.
* @return the attribute value
*/
+ public Object get(String name);
+
+ /**
+ * Gets an attribute value.
+ *
+ * @param name the name of the attribute to return.
+ * @exception EBaseException on attribute handling errors.
+ * @return the attribute value
+ */
public String getInString(String name);
/**