|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.security.storage.EncodingUtils
public final class EncodingUtils
Collection of helper methods.
This class is not intended to be instantiated or extended by clients.
| Constructor Summary | |
|---|---|
EncodingUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
decodeBase64(java.lang.String string)
Provides decoding of Base64-encoded string |
static java.lang.String |
decodeSlashes(java.lang.String nodeName)
Decode strings previously encoded with the encodeSlashes(String) method. |
static java.lang.String |
encodeBase64(byte[] bytes)
Provides Base64 encoding of the data. |
static java.lang.String |
encodeSlashes(java.lang.String nodeName)
Encode strings containing forward slashes so that they can be used as node names with secure preferences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncodingUtils()
| Method Detail |
|---|
public static java.lang.String encodeSlashes(java.lang.String nodeName)
Internally, the class uses a subset of JIT encoding. The forward slashes and backward slashes are encoded.
nodeName - string to be encoded
null if argument was nulldecodeSlashes(String)public static java.lang.String decodeSlashes(java.lang.String nodeName)
encodeSlashes(String) method.
nodeName - string to be decoded
null if argument was nullpublic static java.lang.String encodeBase64(byte[] bytes)
bytes - data to be encoded
public static byte[] decodeBase64(java.lang.String string)
string - data encoded as Base64
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.