org.jboss.security.Base64Encoder does not work for certain lengths

Solution Verified - Updated -

Issue

  • The class org.jboss.security.Base64Encoder fails to encode some Base64 data, the result is truncated and the last four characters are missing.
  • The class org.jboss.security.Base64Encoder does not work when the byte array to encode is of certain lengths (1026 or 3072 for example).

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.