What is the replacement for SecurityAssociation.setPrincipal() on JBoss EAP 6.x

Solution Verified - Updated -

Issue

  • In EAP 5, we had code calling SecurityAssociation.setPrincipal(new SimplePrincipal("quartz_user"));

We used this in cases where a Quartz triggered background thread called a SLSB that used the principal for audit information. Most places I've found in forums was using SecurityClient.

We don't want to do this as we don't want to deal with technical users in our user repository. We basically just want to set the Caller Principal without logging in.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

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