org.eclipse.osgi.internal.signedcontent
Class Base64
java.lang.Object
org.eclipse.osgi.internal.signedcontent.Base64
public class Base64
- extends Object
|
Method Summary |
static byte[] |
decode(byte[] data)
This method decodes the byte array in base 64 encoding into a char array
Base 64 encoding has to be according to the specification given by the
RFC 1521 (5.2). |
static byte[] |
encode(byte[] data)
This method encodes the byte array into a char array in base 64 according
to the specification given by the RFC 1521 (5.2). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64
public Base64()
decode
public static byte[] decode(byte[] data)
- This method decodes the byte array in base 64 encoding into a char array
Base 64 encoding has to be according to the specification given by the
RFC 1521 (5.2).
- Parameters:
data - the encoded byte array
- Returns:
- the decoded byte array
encode
public static byte[] encode(byte[] data)
- This method encodes the byte array into a char array in base 64 according
to the specification given by the RFC 1521 (5.2).
- Parameters:
data - the encoded char array
- Returns:
- the byte array that needs to be encoded
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.