Examples of PacketMessageInfo


Examples of com.sun.enterprise.security.jmac.provider.PacketMessageInfo

     
    @Override
    public JAXBElement startSecureConversation(Packet packet)
            throws WSSecureConversationException {

  PacketMessageInfo locInfo = new PacketMapMessageInfo(packet,new Packet());
  JAXBElement token = null;

  try {

      // gets the subject from the packet (puts one there if not found)
      Subject locClientSubject = getClientSubject(packet);

      // put MessageInfo in properties map, since MessageInfo
      // is not passed to getAuthContext, key idicates function
      HashMap map = new HashMap();
      map.put(PipeConstants.SECURITY_TOKEN,locInfo);

      helper.getSessionToken(map,locInfo,locClientSubject);

      // helper returns token in map of msgInfo, using same key
      Object o = locInfo.getMap().get(PipeConstants.SECURITY_TOKEN);

      if (o != null && o instanceof JAXBElement) {
    token = (JAXBElement) o;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.