subject.getPrivateCredentials returns null in EAP 5

Solution Verified - Updated -

Issue

  • Trying to get the user's password after they've been authenticated so it can be passed to other web services that require this password. I retrieve the Principal and Role info great, but get nothing when calling getPrivateCredentials() or getPublicCredentials() on subject it returns null.
  • How can I access the user's password in EAP 5 in my application?

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 5.1.0

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