public class Base64String extends Object
Base64String(byte[])
this will
do the base 64 encoding for you. This allows typing so we don't pass b64 encoded strings
around by accident. calling toString
returns the decoded value.
Created by Jeff Gaynor
on 10/16/13 at 11:10 AM
Constructor and Description |
---|
Base64String(byte[] rawbytes) |
Base64String(String b64String) |
Modifier and Type | Method and Description |
---|---|
byte[] |
decodeValue() |
String |
encodeValue(byte[] bytes)
Encode the binary into a base 64 string.
|
String |
getValue()
Equivalent to
toString .Returns the base 64 encoded string itself. |
String |
toString() |
public Base64String(String b64String)
public Base64String(byte[] rawbytes)
public String encodeValue(byte[] bytes)
decodeValue()
;bytes
- public byte[] decodeValue()
public String getValue()
toString
.Returns the base 64 encoded string itself.Copyright © 2019. All Rights Reserved.