mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

coulbeck
27.33.2007 adeeb9ea8d0c17ae1d84b86e4ff60e459d82ef42
Use byte[] instead of String for the certificate value because it is a binary attribute.
1 files modified
6 ■■■■ changed files
opends/src/ads/org/opends/admin/ads/ADSContext.java 6 ●●●● patch | view | raw | blame | history
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();