|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.security.util.Base64
| Field Summary | |
static int |
BASE64DEFAULTLENGTH
Field BASE64DEFAULTLENGTH |
| Method Summary | |
static byte[] |
decode(java.lang.String encoded)
Decodes Base64 data into octects |
static java.lang.String |
encode(byte[] binaryData)
Encode a byte array and fold lines at the standard 76th character. |
static java.lang.String |
encode(byte[] binaryData,
int length,
boolean wrap)
Encode a byte array in Base64 format and return an optionally wrapped line. |
protected static boolean |
isPad(byte octect)
|
protected static boolean |
isWhiteSpace(byte octect)
|
static void |
main(java.lang.String[] args)
|
protected static int |
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 |
| Field Detail |
public static final int BASE64DEFAULTLENGTH
| Method Detail |
public static java.lang.String encode(byte[] binaryData)
binaryData - byte[] to be base64 encoded
- Returns:
- the
String with encoded data protected static boolean isWhiteSpace(byte octect)
protected static boolean isPad(byte octect)
public static java.lang.String encode(byte[] binaryData,
int length,
boolean wrap)
binaryData - byte[] data to be encodedlength - int length of wrapped lines; No wrapping if less than 4.
- Returns:
- a
String with encoded data
public static byte[] decode(java.lang.String encoded)
throws WSSecurityException
encoded - String containing Base64 data
WSSecurityExceptionprotected static int removeWhiteSpace(byte[] data)
data - the byte array of base64 data (with WS)
public static void main(java.lang.String[] args)
args -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||