Deprecated
com.sun.org.apache.xml.internal.security.transforms.implementations.TransformBase64Decode
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| public static final int | BASE64DEFAULTLENGTH
Field BASE64DEFAULTLENGTH |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final char[] | |
| private static final int | |
| private static final char | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static byte[] | |
| public static byte[] | Returns: InputStream with the decoded bytesBase64 decode the lines from the reader and return an InputStream with the bytes. |
| public static byte[] | |
| public static void | decode(String
String containing Base64 data base64Data, OutputStream the outputstream os)Decodes Base64 data into outputstream |
| public static void | decode(byte[]
Byte array containing Base64 data base64Data, OutputStream the outputstream os)Decodes Base64 data into outputstream |
| protected static void | |
| public static void | decode(InputStream
containing Base64 data is, OutputStream the outputstream os)Decodes Base64 data into outputstream |
| public static BigInteger | Returns: the biginteger obtained from the nodeMethod decodeBigIntegerFromElement |
| public static BigInteger | Returns: a decoded BigIntegerBase 64 encoded text. text)Decode a base 64 string into a |
| protected static byte[] | |
| public static String | Returns: String with Base64 encodingEncode in Base64 the given |
| public static byte[] | Returns: a byte array withbitlen bits of bigBigInteger to be convertedint the desired length in bits of the representationReturns a byte-array representation of a |
| public static String | Returns: theString with encoded databyte[] to be base64 encodedEncode a byte array and fold lines at the standard 76th character unless ignore line breaks property is set. |
| public static String | Returns: aString with encoded databyte[] data to be encodedint length of wrapped lines; No wrapping if less than 4.Encode a byte array in Base64 format and return an optionally wrapped line. |
| public static Element | Returns: an Element with the base64 encoded in the text.Method encodeToElement |
| public static void | fillElementWithBigInteger(Element element, BigInteger biginteger)
This method takes an (empty) Element and a BigInteger and adds the base64 encoded BigInteger to the Element. |
| pack-priv static byte[] | Returns: a byte array withbitlen bits of bigBigInteger to be convertedint the desired length in bits of the representationReturns a byte-array representation of a |
| protected static int | |
| protected static boolean | |
| protected static boolean | |
| protected static int | Returns: the new lengththe byte array of base64 data (with WS) data)remove WhiteSpace from MIME containing encoded Base64 data. |
| base64Alphabet | back to summary |
|---|---|
| private static final byte[] base64Alphabet | |
| BASE64DEFAULTLENGTH | back to summary |
|---|---|
| public static final int BASE64DEFAULTLENGTH Field BASE64DEFAULTLENGTH | |
| BASELENGTH | back to summary |
|---|---|
| private static final int BASELENGTH | |
| EIGHTBIT | back to summary |
|---|---|
| private static final int EIGHTBIT | |
| FOURBYTE | back to summary |
|---|---|
| private static final int FOURBYTE | |
| lookUpBase64Alphabet | back to summary |
|---|---|
| private static final char[] lookUpBase64Alphabet | |
| LOOKUPLENGTH | back to summary |
|---|---|
| private static final int LOOKUPLENGTH | |
| PAD | back to summary |
|---|---|
| private static final char PAD | |
| SIGN | back to summary |
|---|---|
| private static final int SIGN | |
| SIXTEENBIT | back to summary |
|---|---|
| private static final int SIXTEENBIT | |
| TWENTYFOURBITGROUP | back to summary |
|---|---|
| private static final int TWENTYFOURBITGROUP | |
| Base64 | back to summary |
|---|---|
| private Base64() | |
| decode | back to summary |
|---|---|
| public static byte[] decode(Element element) throws Base64DecodingException Method decode
Takes the
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(byte[] base64) throws Base64DecodingException Method decode
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(BufferedReader reader) throws IOException, Base64DecodingException Base64 decode the lines from the reader and return an InputStream with the bytes.
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(String encoded) throws Base64DecodingException Decodes Base64 data into octets
| |
| decode | back to summary |
|---|---|
| public static void decode(String base64Data, OutputStream os) throws Base64DecodingException, IOException Decodes Base64 data into outputstream
| |
| decode | back to summary |
|---|---|
| public static void decode(byte[] base64Data, OutputStream os) throws Base64DecodingException, IOException Decodes Base64 data into outputstream
| |
| decode | back to summary |
|---|---|
| protected static void decode(byte[] base64Data, OutputStream os, int len) throws Base64DecodingException, IOException | |
| decode | back to summary |
|---|---|
| public static void decode(InputStream is, OutputStream os) throws Base64DecodingException, IOException Decodes Base64 data into outputstream
| |
| decodeBigIntegerFromElement | back to summary |
|---|---|
| public static BigInteger decodeBigIntegerFromElement(Element element) throws Base64DecodingException Method decodeBigIntegerFromElement
| |
| decodeBigIntegerFromText | back to summary |
|---|---|
| public static BigInteger decodeBigIntegerFromText(Text text) throws Base64DecodingException Decode a base 64 string into a
| |
| decodeInternal | back to summary |
|---|---|
| protected static byte[] decodeInternal(byte[] base64Data, int len) throws Base64DecodingException | |
| encode | back to summary |
|---|---|
| public static String encode(BigInteger big) Encode in Base64 the given
| |
| encode | back to summary |
|---|---|
| public static byte[] encode(BigInteger big, int bitlen) Returns a byte-array representation of a Note
| |
| encode | back to summary |
|---|---|
| public static String encode(byte[] binaryData) Encode a byte array and fold lines at the standard 76th character unless ignore line breaks property is set.
| |
| encode | back to summary |
|---|---|
| public static String encode(byte[] binaryData, int length) Encode a byte array in Base64 format and return an optionally wrapped line.
| |
| encodeToElement | back to summary |
|---|---|
| public static Element encodeToElement(Document doc, String localName, byte[] bytes) Method encodeToElement
| |
| fillElementWithBigInteger | back to summary |
|---|---|
| public static void fillElementWithBigInteger(Element element, BigInteger biginteger) This method takes an (empty) Element and a BigInteger and adds the base64 encoded BigInteger to the Element. | |
| getBytes | back to summary |
|---|---|
| pack-priv static byte[] getBytes(BigInteger big, int bitlen) Returns a byte-array representation of a Note
a byte array with | |
| getBytesInternal | back to summary |
|---|---|
| protected static int getBytesInternal(String s, byte[] result) | |
| isPad | back to summary |
|---|---|
| protected static boolean isPad(byte octet) | |
| isWhiteSpace | back to summary |
|---|---|
| protected static boolean isWhiteSpace(byte octet) | |
| removeWhiteSpace | back to summary |
|---|---|
| protected static int removeWhiteSpace(byte[] data) remove WhiteSpace from MIME containing encoded Base64 data.
| |