java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<
String,
byte[]>
net.finmath.decryptionoracle.decryption.keys.Base64BytesAdapter
public final class Base64BytesAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,byte[]>
Base64BytesAdapter class.
- Author:
- Christian Fries
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Base64BytesAdapter
public Base64BytesAdapter()
-
Method Details
-
unmarshal
public byte[] unmarshal(String v)
- Specified by:
unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,byte[]>
-
marshal
public String marshal(byte[] v)
- Specified by:
marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,byte[]>
-
toBase64
public static String toBase64(byte[] b)
- Parameters:
b - an array of bytes objects
- Returns:
- a
String object