You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/codec/binary/Base64.java
+32-30Lines changed: 32 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -111,8 +111,8 @@ public Base64 get() {
111
111
}
112
112
113
113
/**
114
-
* Sets the format of the decoding table. This method allows to explicitly state whether a "standard" or "URL Safe" Base64 decoding is expected. This
115
-
* method does not modify behavior on encoding operations. For configuration of the encoding behavior, please use {@link #setUrlSafe} method.
114
+
* Sets the format of the decoding table. This method allows to explicitly state whether a standard or URL-safe Base64 decoding is expected. This method
115
+
* does not modify behavior on encoding operations. For configuration of the encoding behavior, please use {@link #setUrlSafe(boolean)} method.
116
116
* <p>
117
117
* By default, the implementation uses the {@link DecodeTableFormat#MIXED} approach, allowing a seamless handling of both
118
118
* {@link DecodeTableFormat#URL_SAFE} and {@link DecodeTableFormat#STANDARD} base64.
@@ -147,8 +147,8 @@ public Builder setEncodeTable(final byte... encodeTable) {
147
147
/**
148
148
* Sets the URL-safe encoding policy.
149
149
* <p>
150
-
* This method does not modify behavior on decoding operations. For configuration of the decoding behavior, please use {@link #setDecodeTableFormat}
151
-
* method.
150
+
* This method does not modify behavior on decoding operations. For configuration of the decoding behavior, please use
* 4648 Table 2: The "URL and Filename safe" Base 64 Alphabet</a>.
184
184
*/
@@ -235,7 +235,7 @@ public enum DecodeTableFormat {
235
235
/**
236
236
* This array is a lookup table that translates Unicode characters drawn from the "Base64 Alphabet" (as specified in
237
237
* <a href="https://www.ietf.org/rfc/rfc2045#:~:text=Table%201%3A%20The%20Base64%20Alphabet">RFC 2045 Table 1: The Base64 Alphabet</a>) into their 6-bit
238
-
* positive integer equivalents. Characters that are not in the Base64 or Base64 URL Safe alphabets but fall within the bounds of the array are translated
238
+
* positive integer equivalents. Characters that are not in the Base64 or Base64 URL-safe alphabets but fall within the bounds of the array are translated
239
239
* to -1.
240
240
* <p>
241
241
* The characters '+' and '-' both decode to 62. '/' and '_' both decode to 63. This means decoder seamlessly handles both URL_SAFE and STANDARD base64.
@@ -261,7 +261,7 @@ public enum DecodeTableFormat {
261
261
* This array is a lookup table that translates Unicode characters drawn from the "Base64 Alphabet" (as specified in
262
262
* <a href="https://www.ietf.org/rfc/rfc2045#:~:text=Table%201%3A%20The%20Base64%20Alphabet">RFC 2045 Table 1: The Base64 Alphabet</a>) into their 6-bit
263
263
* positive integer equivalents. Characters that are not in the Base64 alphabet but fall within the bounds of the array are translated to -1. This decoding
264
-
* table handles only the "standard" base64 characters, such as '+' and '/'. The "url-safe" characters such as '-' and '_' are not supported by the table.
264
+
* table handles only the standard base64 characters, such as '+' and '/'. The "url-safe" characters such as '-' and '_' are not supported by the table.
* Table 2: The "URL and Filename safe" Base 64 Alphabet</a>) into their 6-bit positive integer equivalents. Characters that are not in the Base64 URL Safe
282
-
* alphabet but fall within the bounds of the array are translated to -1. This decoding table handles only the "URL Safe" base64 characters, such as '-' and
283
-
* '_'. The "standard" characters such as '+' and '/' are not supported by the table.
281
+
* Table 2: The "URL and Filename safe" Base 64 Alphabet</a>) into their 6-bit positive integer equivalents. Characters that are not in the Base64 URL-safe
282
+
* alphabet but fall within the bounds of the array are translated to -1. This decoding table handles only the URL-safe base64 characters, such as '-' and
283
+
* '_'. The standard characters such as '+' and '/' are not supported by the table.
* This method seamlessly handles data encoded in URL-safe or normal mode. For enforcing verification against strict standard Base64 or Base64 URL Safe
357
-
* tables, please use {@link #decodeBase64Standard} or {@link #decodeBase64Url} methods respectively. This method skips any unknown or not supported bytes.
356
+
* This method seamlessly handles data encoded in URL-safe or normal mode. For enforcing verification against strict standard Base64 or Base64 URL-safe
357
+
* tables, please use {@link #decodeBase64Standard(byte[])} or {@link #decodeBase64UrlSafe(byte[])} methods respectively. This method skips any unknown or
* This method seamlessly handles data encoded in URL-safe or normal mode. For enforcing verification against strict standard Base64 or Base64 URL Safe
371
-
* tables, please use {@link #decodeBase64Standard} or {@link #decodeBase64Url} methods respectively. This method skips any unknown or not supported bytes.
371
+
* This method seamlessly handles data encoded in URL-safe or normal mode. For enforcing verification against strict standard Base64 or Base64 URL-safe
372
+
* tables, please use {@link #decodeBase64Standard(String)} or {@link #decodeBase64UrlSafe(String)} methods respectively. This method skips any unknown or
0 commit comments