WSSecurityException: An invalid security token was provided (Bad ValueType "")

Solution Unverified - Updated -


  • When using X.509 certificate authentication with WS-Security, the error An invalid security token was provided (Bad ValueType "")

the client is trying to provide it's key with the following input:

        xmlns:wsu="" soap:mustUnderstand="true"
            xmlns:ds="" Id="SIG-884">
            <ds:KeyInfo Id="<unique identifier>">
                <wsse:SecurityTokenReference wsu:Id="<unique identifier>">
                    <wsse:KeyIdentifier EncodingType="" ValueType="">*****Some Encrypted Value***</wsse:KeyIdentifier>


  • Red Hat JBoss Enterprise Application Platform 6
  • CXF web service
    • WS-Security

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