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

Author:
kumar jayanti

Field Summary
protected  WeakReference<WSITClientAuthConfig> authConfig
           
protected  int tubeOrPipeHashCode
           
 
Fields inherited from class com.sun.xml.wss.provider.wsit.WSITAuthContextBase
allowMissingTimestamp, bindingLevelAlgSuite, bpMSP, debug, DEFAULT_JMAC_HANDLER, disableIncPrefix, EMPTY_LIST, encHeaderContent, encRMLifecycleMsg, isCertValid, isCertValidityVerified, isEPREnabled, isSOAP12, issuedTokenContextMap, iterationsForPDK, jaxbContext, log, marshaller, mcVer, nextPipe, nextTube, optimized, pipeConfig, policyAlternatives, REQ_PACKET, RES_PACKET, rmVer, secEnv, securityMUValue, securityPolicyNamespaces, serverCert, soapFactory, soapVersion, spVersion, timestampTimeOut, unmarshaller, WSDLPORT, WSENDPOINT, wsscVer, wsTrustVer
 
Constructor Summary
WSITClientAuthContext(String operation, Subject subject, Map<Object,Object> map, CallbackHandler callbackHandler)
          Creates a new instance of WSITClientAuthContext
 
Method Summary
protected  void addIncomingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault)
           
protected  SecurityPolicyHolder addIncomingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph)
           
protected  void addIncomingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph)
           
protected  void addOutgoingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault)
           
protected  SecurityPolicyHolder addOutgoingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph)
           
protected  void addOutgoingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph)
           
 void cleanSubject(javax.security.auth.message.MessageInfo messageInfo, Subject subject)
           
protected  String getAction(WSDLOperation operation, boolean inComming)
           
protected  List<PolicyAssertion> getIssuedTokenPolicies(Packet packet, String scope)
           
protected  void populateKerberosContext(Packet packet, ProcessingContextImpl ctx, boolean isSCMessage)
           
protected  Message secureOutboundMessage(Message message, ProcessingContext ctx)
           
protected  SOAPMessage secureOutboundMessage(SOAPMessage message, ProcessingContext ctx)
           
 javax.security.auth.message.AuthStatus secureRequest(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject)
           
 Packet secureRequest(Packet packet, Subject clientSubject, boolean isSCMessage)
           
 javax.security.auth.message.AuthStatus validateResponse(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject)
           
 Packet validateResponse(Packet req, Subject clientSubject, Subject serviceSubject)
           
protected  Message verifyInboundMessage(Message message, ProcessingContext ctx)
           
protected  SOAPMessage verifyInboundMessage(SOAPMessage message, 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, isMakeConnectionMessage, isRMMessage, isSCCancel, isSCMessage, isSCRenew, isTrustMessage, loadClass, loadGFHandler, populateConfigProperties, resetCachedOperation, resolveAlternative, 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 WeakReference<WSITClientAuthConfig> authConfig

tubeOrPipeHashCode

protected int tubeOrPipeHashCode
Constructor Detail

WSITClientAuthContext

public WSITClientAuthContext(String operation,
                             Subject subject,
                             Map<Object,Object> map,
                             CallbackHandler callbackHandler)
Creates a new instance of WSITClientAuthContext

Method Detail

secureRequest

public javax.security.auth.message.AuthStatus secureRequest(javax.security.auth.message.MessageInfo messageInfo,
                                                            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 Packet secureRequest(Packet packet,
                            Subject clientSubject,
                            boolean isSCMessage)
                     throws XWSSecurityException
Throws:
XWSSecurityException

validateResponse

public javax.security.auth.message.AuthStatus validateResponse(javax.security.auth.message.MessageInfo messageInfo,
                                                               Subject clientSubject,
                                                               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,
                         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 Packet validateResponse(Packet req,
                               Subject clientSubject,
                               Subject serviceSubject)
                        throws XWSSecurityException
Throws:
XWSSecurityException

secureOutboundMessage

protected SOAPMessage secureOutboundMessage(SOAPMessage message,
                                            ProcessingContext ctx)
Overrides:
secureOutboundMessage in class WSITAuthContextBase

secureOutboundMessage

protected Message secureOutboundMessage(Message message,
                                        ProcessingContext ctx)
Overrides:
secureOutboundMessage in class WSITAuthContextBase

verifyInboundMessage

protected SOAPMessage verifyInboundMessage(SOAPMessage message,
                                           ProcessingContext ctx)
                                    throws WssSoapFaultException,
                                           XWSSecurityException
Throws:
WssSoapFaultException
XWSSecurityException

verifyInboundMessage

protected Message verifyInboundMessage(Message message,
                                       ProcessingContext ctx)
                                throws XWSSecurityException
Throws:
XWSSecurityException

addOutgoingMP

protected SecurityPolicyHolder addOutgoingMP(WSDLBoundOperation operation,
                                             Policy policy,
                                             PolicyAlternativeHolder ph)
                                      throws PolicyException
Specified by:
addOutgoingMP in class WSITAuthContextBase
Throws:
PolicyException

addIncomingMP

protected SecurityPolicyHolder addIncomingMP(WSDLBoundOperation operation,
                                             Policy policy,
                                             PolicyAlternativeHolder ph)
                                      throws PolicyException
Specified by:
addIncomingMP in class WSITAuthContextBase
Throws:
PolicyException

addIncomingProtocolPolicy

protected void addIncomingProtocolPolicy(Policy effectivePolicy,
                                         String protocol,
                                         PolicyAlternativeHolder ph)
                                  throws PolicyException
Specified by:
addIncomingProtocolPolicy in class WSITAuthContextBase
Throws:
PolicyException

addOutgoingProtocolPolicy

protected void addOutgoingProtocolPolicy(Policy effectivePolicy,
                                         String protocol,
                                         PolicyAlternativeHolder ph)
                                  throws PolicyException
Specified by:
addOutgoingProtocolPolicy in class WSITAuthContextBase
Throws:
PolicyException

addIncomingFaultPolicy

protected void addIncomingFaultPolicy(Policy effectivePolicy,
                                      SecurityPolicyHolder sph,
                                      WSDLFault fault)
                               throws PolicyException
Specified by:
addIncomingFaultPolicy in class WSITAuthContextBase
Throws:
PolicyException

addOutgoingFaultPolicy

protected void addOutgoingFaultPolicy(Policy effectivePolicy,
                                      SecurityPolicyHolder sph,
                                      WSDLFault fault)
                               throws PolicyException
Specified by:
addOutgoingFaultPolicy in class WSITAuthContextBase
Throws:
PolicyException

getAction

protected String getAction(WSDLOperation operation,
                           boolean inComming)
Specified by:
getAction in class WSITAuthContextBase

getIssuedTokenPolicies

protected List<PolicyAssertion> getIssuedTokenPolicies(Packet packet,
                                                       String scope)

populateKerberosContext

protected void populateKerberosContext(Packet packet,
                                       ProcessingContextImpl ctx,
                                       boolean isSCMessage)
                                throws XWSSecurityException
Throws:
XWSSecurityException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.