Class Base64Service


  • @ApplicationScoped
    public class Base64Service
    extends Object
    Utility methods for base64 encoding / decoding
    Version:
    May 08, 2020
    Author:
    Yuriy Movchan
    • Constructor Detail

      • Base64Service

        public Base64Service()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • encodeToString

        public String encodeToString​(byte[] src)
      • encode

        public byte[] encode​(byte[] src)
      • decode

        public byte[] decode​(byte[] src)
      • decode

        public byte[] decode​(String src)
      • urlEncodeToString

        public String urlEncodeToString​(byte[] src)
      • urlEncodeToStringWithoutPadding

        public String urlEncodeToStringWithoutPadding​(byte[] src)
      • urlDecode

        public byte[] urlDecode​(byte[] src)
      • urlDecode

        public byte[] urlDecode​(String src)