From a401798e5e8f3142b49858c958bfcb9d4a764ddb Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 04 Sep 2012 16:29:01 +0000
Subject: [PATCH] Fix OPENDJ-369: Consider exposing base 64 encode/decode APIs

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java
index 975b840..63d8453 100755
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ByteSequence.java
@@ -260,6 +260,14 @@
     ByteSequence subSequence(int start, int end);
 
     /**
+     * Returns the Base64 encoded string representation of this byte string.
+     *
+     * @return The Base64 encoded string representation of this byte string.
+     * @see ByteString#valueOfBase64(String)
+     */
+    String toBase64String();
+
+    /**
      * Returns a byte array containing the bytes in this sequence in the same
      * order as this sequence. The length of the byte array will be the length
      * of this sequence.

--
Gitblit v1.10.0