Use xml.bind Base64 decoder instead of Guava 60/10160/1
authorTony Tkacik <ttkacik@cisco.com>
Fri, 22 Aug 2014 08:33:16 +0000 (10:33 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Fri, 22 Aug 2014 08:33:22 +0000 (10:33 +0200)
commit273143f81552e966f35d582ab1df85f017766064
treeee61ec378e53df9b7a44ac5012a8d0514067efa5
parent56063ffd4dde49dee8bfa1bb1050051875c9b0a9
Use xml.bind Base64 decoder instead of Guava

As it turned out Guava Base64 decoder is not
compatible with XML encoding, since it is much
stricter and throws error on new lines which
are pretty common in XMLs with Base64 encoded
data.

javax.xml.bind package provides same static
method for parsing string into bytes,
but with XSD semantics for Base64 encoding
which are compatible with XML way
of encoding data.

Change-Id: I5ef4c0b2ba521472b8caacdff1f44ff17d660eb3
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/TypeDefinitionAwareCodec.java