|
Sun Adapter for LDAP API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.ldapadapter.utils.cryptography.impl.Base64Impl
public class Base64Impl
Base64
Constructor Summary | |
---|---|
Base64Impl()
|
Method Summary | |
---|---|
static byte[] |
decode(byte[] base64Data)
Decodes Base64 data into octects |
static java.lang.String |
decode(java.lang.String base64Data)
Decodes Base64 data into octects |
byte[] |
decodeBase64(byte[] aData)
Decodes the Base64 encoded aData. |
static byte[] |
encode(byte[] binaryData)
Encodes hex octects into Base64 |
static java.lang.String |
encode(java.lang.String stringData)
Encodes String into Base64 using the default encoding when converting the String to a byte [] |
byte[] |
encodeBase64(byte[] aData)
Encodes the aData to Base64 encoded form. |
static int |
getDecodedDataLength(byte[] base64Data)
returns length of decoded data given an array containing encoded data. |
static boolean |
isArrayByteBase64(byte[] arrayOctect)
|
static boolean |
isBase64(byte octect)
|
static boolean |
isBase64(java.lang.String isValidString)
|
protected static boolean |
isData(byte octect)
|
protected static boolean |
isPad(byte octect)
|
protected static boolean |
isWhiteSpace(byte octect)
|
static byte[] |
removeWhiteSpace(byte[] data)
remove WhiteSpace from MIME containing encoded Base64 data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64Impl()
Method Detail |
---|
public byte[] encodeBase64(byte[] aData)
Base64
encodeBase64
in interface Base64
aData
- The data to be encoded in Base64.
Base64#encodeBase64.
public byte[] decodeBase64(byte[] aData)
Base64
decodeBase64
in interface Base64
aData
- The Base64 encoded data.
Base64#decodeBase64.
protected static boolean isWhiteSpace(byte octect)
protected static boolean isPad(byte octect)
protected static boolean isData(byte octect)
public static boolean isBase64(java.lang.String isValidString)
public static boolean isBase64(byte octect)
public static byte[] removeWhiteSpace(byte[] data)
data
-
public static boolean isArrayByteBase64(byte[] arrayOctect)
public static byte[] encode(byte[] binaryData)
binaryData
- Array containing binaryData
public static java.lang.String encode(java.lang.String stringData)
stringData
- String containing string data to encode
public static byte[] decode(byte[] base64Data)
binaryData
- Byte array containing Base64 data
public static java.lang.String decode(java.lang.String base64Data)
base64Data
- String containing Base64 data
public static int getDecodedDataLength(byte[] base64Data)
base64Data
-
|
Sun Adapter for LDAP API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |