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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content