Examples of SOAPAuthParam


Examples of com.sun.enterprise.security.jauth.SOAPAuthParam

            if (GFServerConfigProvider.SOAP.equals(layer)) {
    if (info instanceof PacketMessageInfo) {
        // construct AuthParam with Packets if they are available
        return ((PacketMessageInfo)info).getSOAPAuthParam();
    } else {
        return new SOAPAuthParam((SOAPMessage)
               info.getRequestMessage(),
               (SOAPMessage)
               info.getResponseMessage());
    }
            } else if (GFServerConfigProvider.HTTPSERVLET.equals(layer)) {
View Full Code Here

Examples of com.sun.enterprise.security.jauth.SOAPAuthParam

    private SOAPAuthParam soapAuthParam;

    private Map infoMap;

    public PacketMapMessageInfo(Packet reqPacket, Packet resPacket) {
  soapAuthParam = new SOAPAuthParam(reqPacket,resPacket,0);
    }
View Full Code Here

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

        }

    }

    public AuthParam newSOAPAuthParam(MessageInfo messageInfo) {
        return new SOAPAuthParam((SOAPMessage)
                                  messageInfo.getRequestMessage(),
               (SOAPMessage)
                messageInfo.getResponseMessage());

    }
View Full Code Here

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

  validateRequest(javax.xml.rpc.handler.soap.SOAPMessageContext context,
      ServerAuthContext sAC)
        throws AuthException
    {
  boolean rvalue = true;
  SOAPAuthParam param =
      new SOAPAuthParam(context.getMessage(), null);

  // put sharedState in MessageContext for use by secureResponse
  HashMap sharedState = new HashMap();
  context.setProperty(SHARED_SERVER_STATE, sharedState);

  try {
      rvalue = validateRequest(param, sharedState, sAC);
  } catch(PendingException pe){
            _logger.log(Level.FINE,
      "Container-auth: wss: Error validating request  ",pe);
      context.setMessage(param.getResponse());
      rvalue = false;
  } catch(FailureException fe){
            _logger.log(Level.FINE,
      "Container-auth: wss: Error validating request  ",fe);
      context.setMessage(param.getResponse());
      throw fe;
        }
  return rvalue;
    }
View Full Code Here

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

  // subject may change if runAs identity differs from caller's.
  // Therefore, session state is saved in sharedState not subject
  SecurityContext sc = SecurityContext.getCurrent();
  Subject subject = sc.getSubject();

  SOAPAuthParam param = new SOAPAuthParam(null, response);

        try{
            sAC.secureResponse((AuthParam)param, subject, sharedState);
        } finally {
      sAC.disposeSubject(subject,sharedState);
View Full Code Here

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

        if(_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE,
            "Container Auth: ClientAuthContext.secureRequest");
        }

  SOAPAuthParam param = new SOAPAuthParam(request, null);

  Subject subject = null;
  if (isAppClient) {
      ClientSecurityContext sc = ClientSecurityContext.getCurrent();
      if (sc != null) {
View Full Code Here

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

        boolean rvalue = true;

  // get a subject to be filled in with the principals of the responder
  Subject responderSubject = new Subject();

  SOAPAuthParam param = new SOAPAuthParam(null, response);

        try{
            cAC.validateResponse( param, responderSubject, sharedState);
        } catch(AuthException ae){
            _logger.log(Level.SEVERE, LogUtils.ERROR_RESPONSE_VALIDATION, ae);
View Full Code Here

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

  validateRequest(javax.xml.rpc.handler.soap.SOAPMessageContext context,
      ServerAuthContext sAC)
        throws AuthException
    {
  boolean rvalue = true;
  SOAPAuthParam param =
      new SOAPAuthParam(context.getMessage(), null);

  // put sharedState in MessageContext for use by secureResponse
  HashMap sharedState = new HashMap();
  context.setProperty(SHARED_SERVER_STATE, sharedState);

  try {
      rvalue = validateRequest(param, sharedState, sAC);
  } catch(PendingException pe){
            _logger.log(Level.FINE,
      "Container-auth: wss: Error validating request  ",pe);
      context.setMessage(param.getResponse());
      rvalue = false;
  } catch(FailureException fe){
            _logger.log(Level.FINE,
      "Container-auth: wss: Error validating request  ",fe);
      context.setMessage(param.getResponse());
      throw fe;
        }
  return rvalue;
    }
View Full Code Here

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

  // subject may change if runAs identity differs from caller's.
  // Therefore, session state is saved in sharedState not subject
  SecurityContext sc = SecurityContext.getCurrent();
  Subject subject = sc.getSubject();

  SOAPAuthParam param = new SOAPAuthParam(null, response);

        try{
            sAC.secureResponse((AuthParam)param, subject, sharedState);
        } finally {
      sAC.disposeSubject(subject,sharedState);
View Full Code Here

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

        if(_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE,
            "Container Auth: ClientAuthContext.secureRequest");
        }

  SOAPAuthParam param = new SOAPAuthParam(request, null);

  Subject subject = null;
  if (isAppClient) {
      ClientSecurityContext sc = ClientSecurityContext.getCurrent();
      if (sc != null) {
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.