Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

18.12. Add an Authentication Class to a Message Object

Procedure 18.4. Task

  • Execute this code:
    byte[] encrypted = PublicCryptoUtil.INSTANCE.encrypt((Serializable)
    message.getContext.setContext(SecurityService.AUTH_REQUEST, encrypted);

The authentication context is encrypted and then set within the message context. (It is later decrypted by the Enterprise Service Bus so that it can authenticate the request.)