summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/certsrv')
-rw-r--r--base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecord.java15
-rw-r--r--base/common/src/com/netscape/certsrv/key/KeyInfo.java11
2 files changed, 23 insertions, 3 deletions
diff --git a/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecord.java b/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecord.java
index d1eb05f3d..f66d53f1e 100644
--- a/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecord.java
+++ b/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecord.java
@@ -20,8 +20,8 @@ package com.netscape.certsrv.dbs.keydb;
import java.math.BigInteger;
import java.util.Date;
-import com.netscape.certsrv.base.MetaInfo;
import com.netscape.certsrv.base.EBaseException;
+import com.netscape.certsrv.base.MetaInfo;
/**
* An interface contains constants for key record.
@@ -44,6 +44,7 @@ public interface IKeyRecord {
public static final String ATTR_CLIENT_ID = "clientId";
public static final String ATTR_DATA_TYPE = "dataType";
public static final String ATTR_STATUS = "status";
+ public static final String ATTR_REALM = "realm";
// key state
@@ -93,9 +94,9 @@ public interface IKeyRecord {
/**
* Retrieves meta info.
*
- * @return MetaInfo
+ * @return MetaInfo
*/
- public MetaInfo getMetaInfo();
+ public MetaInfo getMetaInfo();
/**
* Retrieves client ID.
@@ -158,4 +159,12 @@ public interface IKeyRecord {
* @exception EBaseException failed to retrieve public key data
*/
public byte[] getPublicKeyData() throws EBaseException;
+
+ /**
+ * Retrieves authorization realm.
+ *
+ * @return authorization realm
+ * @exception EBaseException failed to retrieve authorization realm
+ */
+ public String getRealm() throws EBaseException;
}
diff --git a/base/common/src/com/netscape/certsrv/key/KeyInfo.java b/base/common/src/com/netscape/certsrv/key/KeyInfo.java
index 204cac493..016b98c41 100644
--- a/base/common/src/com/netscape/certsrv/key/KeyInfo.java
+++ b/base/common/src/com/netscape/certsrv/key/KeyInfo.java
@@ -58,6 +58,9 @@ public class KeyInfo {
@XmlElement
private String publicKey;
+ @XmlElement
+ private String realm;
+
public KeyInfo() {
// required for JAXB (defaults)
}
@@ -157,4 +160,12 @@ public class KeyInfo {
}
}
+ public String getRealm() {
+ return realm;
+ }
+
+ public void setRealm(String realm) {
+ this.realm = realm;
+ }
+
}