From b0e5839d112e203afe00e91489da093af1003c4e Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Mon, 27 Aug 2007 18:33:48 +0000
Subject: [PATCH] Use byte[] instead of String for the certificate value because it is a binary attribute.
---
opendj-sdk/opends/src/ads/org/opends/admin/ads/ADSContext.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-sdk/opends/src/ads/org/opends/admin/ads/ADSContext.java b/opendj-sdk/opends/src/ads/org/opends/admin/ads/ADSContext.java
index fa5aef9..4f6a8df 100644
--- a/opendj-sdk/opends/src/ads/org/opends/admin/ads/ADSContext.java
+++ b/opendj-sdk/opends/src/ads/org/opends/admin/ads/ADSContext.java
@@ -1961,7 +1961,7 @@
* The instance-key public-key certificate from the local truststore of the
* instance bound by this context.
*/
- private String localInstanceKeyCertificate = null;
+ private byte[] localInstanceKeyCertificate = null;
/**
* Updates the instance key public-key certificate value of this context from
@@ -2001,7 +2001,7 @@
final Attribute certAttr = adsCertEntry.getAttributes().get(
"ds-cfg-public-key-certificate;binary");
if (null != certAttr) {
- localInstanceKeyCertificate = (String)certAttr.get();
+ localInstanceKeyCertificate = (byte[])certAttr.get();
}
}
catch (NameNotFoundException x) {
@@ -2044,7 +2044,7 @@
*
* @throws ADSContextException if public-key certificate cannot be retrieved.
*/
- public String getLocalInstanceKeyCertificate() throws ADSContextException
+ public byte[] getLocalInstanceKeyCertificate() throws ADSContextException
{
if (null == localInstanceKeyCertificate) {
retrieveLocalInstanceKeyCertificate();
--
Gitblit v1.10.0