Package com.sun.enterprise.security.jmac.provider

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


  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

  // 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

        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

        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

  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

  // 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

        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

        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,
View Full Code Here

        }

    }

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

    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.security.jmac.provider.SOAPAuthParam

Copyright © 2018 www.massapicom. 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.