From aad596c8559b3d3d081617736cdbeda1374f017b Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 11 May 2012 21:58:30 +0000
Subject: [PATCH] Fix OPENDJ-482: Validation for the CertificateSyntax

---
 opends/src/server/org/opends/server/api/AttributeSyntax.java |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/AttributeSyntax.java b/opends/src/server/org/opends/server/api/AttributeSyntax.java
index 3438ad4..f299fe0 100644
--- a/opends/src/server/org/opends/server/api/AttributeSyntax.java
+++ b/opends/src/server/org/opends/server/api/AttributeSyntax.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2009 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 package org.opends.server.api;
 import org.opends.messages.Message;
@@ -215,15 +216,24 @@
 
 
   /**
-   * Indicates whether this attribute syntax is a binary one.
-   * @return  {@code true} if it is a binary syntax rule
-   *          , or {@code false} if not.
+   * Indicates whether this attribute syntax requires BER encoding.
+   *
+   * @return {@code true} if this syntax required BER encoding.
    */
   public abstract boolean isBinary();
 
 
 
   /**
+   * Indicates whether this attribute syntax is human readable.
+   *
+   * @return {@code true} if this syntax is human readable.
+   */
+  public abstract boolean isHumanReadable();
+
+
+
+  /**
    * Retrieves the hash code for this attribute syntax.  It will be
    * calculated as the sum of the characters in the OID.
    *
@@ -273,7 +283,7 @@
       return false;
     }
 
-    return getOID().equals(((AttributeSyntax) o).getOID());
+    return getOID().equals(((AttributeSyntax<?>) o).getOID());
   }
 
 

--
Gitblit v1.10.0