Package io.jans.fido2.service
Class Base64Service
- java.lang.Object
-
- io.jans.fido2.service.Base64Service
-
@ApplicationScoped public class Base64Service extends Object
Utility methods for base64 encoding / decoding- Version:
- May 08, 2020
- Author:
- Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description Base64Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode(byte[] src)
byte[]
decode(String src)
byte[]
encode(byte[] src)
String
encodeToString(byte[] src)
void
init()
byte[]
urlDecode(byte[] src)
byte[]
urlDecode(String src)
String
urlEncodeToString(byte[] src)
String
urlEncodeToStringWithoutPadding(byte[] src)
-
-
-
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)
-
-