MCPcopy Create free account
hub / github.com/jwtk/jjwt / Base64Encoder

Class Base64Encoder

api/src/main/java/io/jsonwebtoken/io/Base64Encoder.java:26–41  ·  view source on GitHub ↗

Very fast Base64 encoder guaranteed to work in all >= Java 7 JDK and Android environments. @since 0.10.0

Source from the content-addressed store, hash-verified

24 * @since 0.10.0
25 */
26class Base64Encoder extends Base64Support implements Encoder<byte[], String> {
27
28 Base64Encoder() {
29 this(Base64.DEFAULT);
30 }
31
32 Base64Encoder(Base64 base64) {
33 super(base64);
34 }
35
36 @Override
37 public String encode(byte[] bytes) throws EncodingException {
38 Assert.notNull(bytes, "byte array argument cannot be null");
39 return this.base64.encodeToString(bytes, false);
40 }
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…