com.sun.xml.wss.provider.wsit
Class WSITClientAuthContext

java.lang.Object
  extended by com.sun.xml.wss.provider.wsit.WSITAuthContextBase
      extended by com.sun.xml.wss.provider.wsit.WSITClientAuthContext
All Implemented Interfaces:
javax.security.auth.message.ClientAuth, javax.security.auth.message.config.ClientAuthContext

public class WSITClientAuthContext
extends WSITAuthContextBase
implements javax.security.auth.message.config.ClientAuthContext


Field Summary
protected  WSITClientAuthConfig authConfig
           
protected  java.lang.Object tubeOrPipe
           
 
Fields inherited from class com.sun.xml.wss.provider.wsit.WSITAuthContextBase
allowMissingTimestamp, bindingLevelAlgSuite, bpMSP, debug, DEFAULT_JMAC_HANDLER, disableIncPrefix, EMPTY_LIST, encHeaderContent, inMessagePolicyMap, inProtocolPM, isSOAP12, issuedTokenContextMap, jaxbContext, log, marshaller, nextPipe, nextTube, optimized, outMessagePolicyMap, outProtocolPM, pipeConfig, REQ_PACKET, RES_PACKET, rmVer, secEnv, securityMUValue, securityPolicyNamespaces, soapFactory, soapVersion, spVersion, timestampTimeOut, unmarshaller, WSDLPORT, wsPolicyMap, wsscVer, wsTrustVer
 
Constructor Summary
WSITClientAuthContext(java.lang.String operation, javax.security.auth.Subject subject, java.util.Map<java.lang.Object,java.lang.Object> map, javax.security.auth.callback.CallbackHandler callbackHandler)
          Creates a new instance of WSITClientAuthContext
 
Method Summary
protected  void addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, SecurityPolicyHolder sph, com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
           
protected  SecurityPolicyHolder addIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation, com.sun.xml.ws.policy.Policy policy)
           
protected  void addIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, java.lang.String protocol)
           
protected  void addOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, SecurityPolicyHolder sph, com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
           
protected  SecurityPolicyHolder addOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation, com.sun.xml.ws.policy.Policy policy)
           
protected  void addOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, java.lang.String protocol)
           
 void cleanSubject(javax.security.auth.message.MessageInfo messageInfo, javax.security.auth.Subject subject)
           
protected  java.lang.String getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation, boolean inComming)
           
protected  java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getIssuedTokenPolicies(com.sun.xml.ws.api.message.Packet packet, java.lang.String scope)
           
protected  void populateKerberosContext(com.sun.xml.ws.api.message.Packet packet, com.sun.xml.wss.impl.ProcessingContextImpl ctx, boolean isSCMessage)
           
protected  com.sun.xml.ws.api.message.Message secureOutboundMessage(com.sun.xml.ws.api.message.Message message, com.sun.xml.wss.ProcessingContext ctx)
           
protected  javax.xml.soap.SOAPMessage secureOutboundMessage(javax.xml.soap.SOAPMessage message, com.sun.xml.wss.ProcessingContext ctx)
           
 javax.security.auth.message.AuthStatus secureRequest(javax.security.auth.message.MessageInfo messageInfo, javax.security.auth.Subject clientSubject)
           
 com.sun.xml.ws.api.message.Packet secureRequest(com.sun.xml.ws.api.message.Packet packet, javax.security.auth.Subject clientSubject, boolean isSCMessage)
           
 javax.xml.bind.JAXBElement startSecureConversation(com.sun.xml.ws.api.message.Packet packet)
           
 javax.security.auth.message.AuthStatus validateResponse(javax.security.auth.message.MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject)
           
 com.sun.xml.ws.api.message.Packet validateResponse(com.sun.xml.ws.api.message.Packet req, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject)
           
protected  com.sun.xml.ws.api.message.Message verifyInboundMessage(com.sun.xml.ws.api.message.Message message, com.sun.xml.wss.ProcessingContext ctx)
           
protected  javax.xml.soap.SOAPMessage verifyInboundMessage(javax.xml.soap.SOAPMessage message, com.sun.xml.wss.ProcessingContext ctx)
           
 
Methods inherited from class com.sun.xml.wss.provider.wsit.WSITAuthContextBase
bindingHasIssuedTokenPolicy, bindingHasRMPolicy, bindingHasSecureConversationPolicy, buildProtocolPolicy, cachedOperation, cacheMessage, cacheOperation, cacheOperation, collectPolicies, constructPolicyHolder, constructPolicyHolder, generateInternalError, getAction, getAlgoSuite, getBindingAlgorithmSuite, getEffectiveBootstrapPolicy, getInBoundSCP, getIssuedTokenPoliciesFromBootstrapPolicy, getKerberosTokenPoliciesFromBootstrapPolicy, getOperation, getOperationKey, getOutBoundKTP, getOutBoundSCP, getOutgoingXWSBootstrapPolicy, getOutgoingXWSSecurityPolicy, getRequestPacket, getResponsePacket, getSecureConversationPolicies, getSOAPFault, getSOAPFaultException, getSOAPFaultException, getTokens, getWSDLOpFromAction, getWssAssertion, hasKerberosTokenPolicy, initializeInboundProcessingContext, initializeOutgoingProcessingContext, isAddressingEnabled, isRMMessage, isSCCancel, isSCMessage, isSCRenew, isTrustMessage, loadClass, loadGFHandler, populateConfigProperties, resetCachedOperation, setRequestPacket, setResponsePacket, unmarshalPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authConfig

protected WSITClientAuthConfig authConfig

tubeOrPipe

protected java.lang.Object tubeOrPipe
Constructor Detail

WSITClientAuthContext

public WSITClientAuthContext(java.lang.String operation,
                             javax.security.auth.Subject subject,
                             java.util.Map<java.lang.Object,java.lang.Object> map,
                             javax.security.auth.callback.CallbackHandler callbackHandler)
Creates a new instance of WSITClientAuthContext

Method Detail

secureRequest

public javax.security.auth.message.AuthStatus secureRequest(javax.security.auth.message.MessageInfo messageInfo,
                                                            javax.security.auth.Subject clientSubject)
                                                     throws javax.security.auth.message.AuthException
Specified by:
secureRequest in interface javax.security.auth.message.ClientAuth
Throws:
javax.security.auth.message.AuthException

secureRequest

public com.sun.xml.ws.api.message.Packet secureRequest(com.sun.xml.ws.api.message.Packet packet,
                                                       javax.security.auth.Subject clientSubject,
                                                       boolean isSCMessage)
                                                throws com.sun.xml.wss.XWSSecurityException
Throws:
com.sun.xml.wss.XWSSecurityException

validateResponse

public javax.security.auth.message.AuthStatus validateResponse(javax.security.auth.message.MessageInfo messageInfo,
                                                               javax.security.auth.Subject clientSubject,
                                                               javax.security.auth.Subject serviceSubject)
                                                        throws javax.security.auth.message.AuthException
Specified by:
validateResponse in interface javax.security.auth.message.ClientAuth
Throws:
javax.security.auth.message.AuthException

cleanSubject

public void cleanSubject(javax.security.auth.message.MessageInfo messageInfo,
                         javax.security.auth.Subject subject)
                  throws javax.security.auth.message.AuthException
Specified by:
cleanSubject in interface javax.security.auth.message.ClientAuth
Throws:
javax.security.auth.message.AuthException

validateResponse

public com.sun.xml.ws.api.message.Packet validateResponse(com.sun.xml.ws.api.message.Packet req,
                                                          javax.security.auth.Subject clientSubject,
                                                          javax.security.auth.Subject serviceSubject)
                                                   throws com.sun.xml.wss.XWSSecurityException
Throws:
com.sun.xml.wss.XWSSecurityException

secureOutboundMessage

protected javax.xml.soap.SOAPMessage secureOutboundMessage(javax.xml.soap.SOAPMessage message,
                                                           com.sun.xml.wss.ProcessingContext ctx)
Overrides:
secureOutboundMessage in class WSITAuthContextBase

secureOutboundMessage

protected com.sun.xml.ws.api.message.Message secureOutboundMessage(com.sun.xml.ws.api.message.Message message,
                                                                   com.sun.xml.wss.ProcessingContext ctx)
Overrides:
secureOutboundMessage in class WSITAuthContextBase

verifyInboundMessage

protected javax.xml.soap.SOAPMessage verifyInboundMessage(javax.xml.soap.SOAPMessage message,
                                                          com.sun.xml.wss.ProcessingContext ctx)
                                                   throws com.sun.xml.wss.impl.WssSoapFaultException,
                                                          com.sun.xml.wss.XWSSecurityException
Throws:
com.sun.xml.wss.impl.WssSoapFaultException
com.sun.xml.wss.XWSSecurityException

verifyInboundMessage

protected com.sun.xml.ws.api.message.Message verifyInboundMessage(com.sun.xml.ws.api.message.Message message,
                                                                  com.sun.xml.wss.ProcessingContext ctx)
                                                           throws com.sun.xml.wss.XWSSecurityException
Throws:
com.sun.xml.wss.XWSSecurityException

addOutgoingMP

protected SecurityPolicyHolder addOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
                                             com.sun.xml.ws.policy.Policy policy)
                                      throws com.sun.xml.ws.policy.PolicyException
Specified by:
addOutgoingMP in class WSITAuthContextBase
Throws:
com.sun.xml.ws.policy.PolicyException

addIncomingMP

protected SecurityPolicyHolder addIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
                                             com.sun.xml.ws.policy.Policy policy)
                                      throws com.sun.xml.ws.policy.PolicyException
Specified by:
addIncomingMP in class WSITAuthContextBase
Throws:
com.sun.xml.ws.policy.PolicyException

addIncomingProtocolPolicy

protected void addIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
                                         java.lang.String protocol)
                                  throws com.sun.xml.ws.policy.PolicyException
Specified by:
addIncomingProtocolPolicy in class WSITAuthContextBase
Throws:
com.sun.xml.ws.policy.PolicyException

addOutgoingProtocolPolicy

protected void addOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
                                         java.lang.String protocol)
                                  throws com.sun.xml.ws.policy.PolicyException
Specified by:
addOutgoingProtocolPolicy in class WSITAuthContextBase
Throws:
com.sun.xml.ws.policy.PolicyException

addIncomingFaultPolicy

protected void addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
                                      SecurityPolicyHolder sph,
                                      com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
                               throws com.sun.xml.ws.policy.PolicyException
Specified by:
addIncomingFaultPolicy in class WSITAuthContextBase
Throws:
com.sun.xml.ws.policy.PolicyException

addOutgoingFaultPolicy

protected void addOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
                                      SecurityPolicyHolder sph,
                                      com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
                               throws com.sun.xml.ws.policy.PolicyException
Specified by:
addOutgoingFaultPolicy in class WSITAuthContextBase
Throws:
com.sun.xml.ws.policy.PolicyException

getAction

protected java.lang.String getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation,
                                     boolean inComming)
Specified by:
getAction in class WSITAuthContextBase

startSecureConversation

public javax.xml.bind.JAXBElement startSecureConversation(com.sun.xml.ws.api.message.Packet packet)
                                                   throws WSSecureConversationException
Throws:
WSSecureConversationException

getIssuedTokenPolicies

protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getIssuedTokenPolicies(com.sun.xml.ws.api.message.Packet packet,
                                                                                       java.lang.String scope)

populateKerberosContext

protected void populateKerberosContext(com.sun.xml.ws.api.message.Packet packet,
                                       com.sun.xml.wss.impl.ProcessingContextImpl ctx,
                                       boolean isSCMessage)
                                throws com.sun.xml.wss.XWSSecurityException
Throws:
com.sun.xml.wss.XWSSecurityException