Search in sources :

Example 1 with JoynrCallingPrincipal

use of io.joynr.jeeintegration.api.security.JoynrCallingPrincipal in project joynr by bmwcarit.

the class ProviderWrapper method copyMessageCreatorInfo.

private void copyMessageCreatorInfo() {
    JoynrMessageCreator joynrMessageCreator = injector.getInstance(JoynrMessageCreator.class);
    JoynrCallingPrincipal reference = getUniqueBeanReference(JoynrCallingPrincipal.class);
    String messageCreatorId = joynrMessageCreator.getMessageCreatorId();
    LOG.trace("Setting user '{}' for message processing context.", messageCreatorId);
    reference.setUsername(messageCreatorId);
}
Also used : JoynrMessageCreator(io.joynr.messaging.JoynrMessageCreator) JoynrCallingPrincipal(io.joynr.jeeintegration.api.security.JoynrCallingPrincipal)

Aggregations

JoynrCallingPrincipal (io.joynr.jeeintegration.api.security.JoynrCallingPrincipal)1 JoynrMessageCreator (io.joynr.messaging.JoynrMessageCreator)1