| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | import static org.opends.messages.UtilityMessages.*; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import static org.opends.server.util.Validator.*; |
| | | import static org.forgerock.util.Reject.*; |
| | | |
| | | |
| | | |
| | |
| | | */ |
| | | public static String encode(byte[] rawData) |
| | | { |
| | | ensureNotNull(rawData); |
| | | ifNull(rawData); |
| | | |
| | | |
| | | StringBuilder buffer = new StringBuilder(4 * rawData.length / 3); |
| | |
| | | */ |
| | | public static String encode(ByteSequence rawData) |
| | | { |
| | | ensureNotNull(rawData); |
| | | ifNull(rawData); |
| | | |
| | | |
| | | StringBuilder buffer = new StringBuilder(4 * rawData.length() / 3); |
| | |
| | | public static byte[] decode(String encodedData) |
| | | throws ParseException |
| | | { |
| | | ensureNotNull(encodedData); |
| | | ifNull(encodedData); |
| | | |
| | | |
| | | // The encoded value must have length that is a multiple of four bytes. |