diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-07-30 19:50:23 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-07-31 23:16:34 -0500 |
commit | 7d4a40bdd6bf6ef37705be7131fdc179bb5c1e7d (patch) | |
tree | be962766b1f7afa710650322a436251d2ead963d /base/common/src/com/netscape/certsrv/authentication | |
parent | 0d2ce4c6a9a4c05a0098b13cf6743cfe7f2fc6e5 (diff) | |
download | pki-7d4a40bdd6bf6ef37705be7131fdc179bb5c1e7d.tar.gz pki-7d4a40bdd6bf6ef37705be7131fdc179bb5c1e7d.tar.xz pki-7d4a40bdd6bf6ef37705be7131fdc179bb5c1e7d.zip |
Refactored PKI JNDI realm.
The PKI JNDI realm has been modified to utilize the authentication
and authorization subsystems in PKI engine directly. It's no longer
necessary to define the LDAP connection settings in Tomcat's
configuration files.
Ticket #126
Diffstat (limited to 'base/common/src/com/netscape/certsrv/authentication')
-rw-r--r-- | base/common/src/com/netscape/certsrv/authentication/AuthToken.java | 4 | ||||
-rw-r--r-- | base/common/src/com/netscape/certsrv/authentication/IAuthToken.java | 9 |
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); /** |