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

java.lang.Object
  extended by com.sun.xml.wss.provider.wsit.WSITAuthContextBase
      extended by com.sun.xml.wss.provider.wsit.WSITServerAuthContext
All Implemented Interfaces:
javax.security.auth.message.config.ServerAuthContext, javax.security.auth.message.ServerAuth

public class WSITServerAuthContext
extends WSITAuthContextBase
implements javax.security.auth.message.config.ServerAuthContext

Author:
kumar jayanti

Field Summary
protected static String TRUE
           
 
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
WSITServerAuthContext(String operation, Subject subject, Map<Object,Object> map, CallbackHandler callbackHandler)
          Creates a new instance of WSITServerAuthContext
 
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)
           
protected  boolean bindingHasIssuedTokenPolicy()
           
protected  boolean bindingHasRMPolicy()
           
protected  boolean bindingHasSecureConversationPolicy()
           
 void cleanSubject(javax.security.auth.message.MessageInfo messageInfo, Subject subject)
           
protected  String getAction(WSDLOperation operation, boolean inComming)
           
protected  MessagePolicy getOutgoingFaultPolicy(Packet packet)
           
protected  MessagePolicy getOutgoingXWSSecurityPolicy(Packet packet, boolean isSCMessage)
           
protected  ProcessingContext initializeOutgoingProcessingContext(Packet packet, boolean isSCMessage)
           
 javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo messageInfo, Subject serviceSubject)
           
 Packet secureResponse(Packet retPacket, Subject serviceSubject, Map sharedState)
           
 javax.security.auth.message.AuthStatus validateRequest(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject)
           
 Packet validateRequest(Packet packet, Subject clientSubject, Subject serviceSubject, Map<Object,Object> sharedState)
           
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
buildProtocolPolicy, cachedOperation, cacheMessage, cacheOperation, cacheOperation, collectPolicies, constructPolicyHolder, constructPolicyHolder, generateInternalError, getAction, getAlgoSuite, getBindingAlgorithmSuite, getEffectiveBootstrapPolicy, getInBoundSCP, getIssuedTokenPoliciesFromBootstrapPolicy, getKerberosTokenPoliciesFromBootstrapPolicy, getOperation, getOperationKey, getOutBoundKTP, getOutBoundSCP, getOutgoingXWSBootstrapPolicy, getRequestPacket, getResponsePacket, getSecureConversationPolicies, getSOAPFault, getSOAPFaultException, getSOAPFaultException, getTokens, getWSDLOpFromAction, getWssAssertion, hasKerberosTokenPolicy, initializeInboundProcessingContext, isAddressingEnabled, isMakeConnectionMessage, isRMMessage, isSCCancel, isSCMessage, isSCRenew, isTrustMessage, loadClass, loadGFHandler, populateConfigProperties, resetCachedOperation, resolveAlternative, secureOutboundMessage, secureOutboundMessage, setRequestPacket, setResponsePacket, unmarshalPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

protected static final String TRUE
See Also:
Constant Field Values
Constructor Detail

WSITServerAuthContext

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

Method Detail

validateRequest

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

secureResponse

public javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo messageInfo,
                                                             Subject serviceSubject)
                                                      throws javax.security.auth.message.AuthException
Specified by:
secureResponse in interface javax.security.auth.message.ServerAuth
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.ServerAuth
Throws:
javax.security.auth.message.AuthException

validateRequest

public Packet validateRequest(Packet packet,
                              Subject clientSubject,
                              Subject serviceSubject,
                              Map<Object,Object> sharedState)
                       throws XWSSecurityException
Throws:
XWSSecurityException

secureResponse

public Packet secureResponse(Packet retPacket,
                             Subject serviceSubject,
                             Map sharedState)
                      throws XWSSecurityException
Throws:
XWSSecurityException

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

initializeOutgoingProcessingContext

protected ProcessingContext initializeOutgoingProcessingContext(Packet packet,
                                                                boolean isSCMessage)
Overrides:
initializeOutgoingProcessingContext in class WSITAuthContextBase

getOutgoingXWSSecurityPolicy

protected MessagePolicy getOutgoingXWSSecurityPolicy(Packet packet,
                                                     boolean isSCMessage)
Overrides:
getOutgoingXWSSecurityPolicy in class WSITAuthContextBase

getOutgoingFaultPolicy

protected MessagePolicy getOutgoingFaultPolicy(Packet packet)

bindingHasIssuedTokenPolicy

protected boolean bindingHasIssuedTokenPolicy()
Overrides:
bindingHasIssuedTokenPolicy in class WSITAuthContextBase

bindingHasSecureConversationPolicy

protected boolean bindingHasSecureConversationPolicy()
Overrides:
bindingHasSecureConversationPolicy in class WSITAuthContextBase

bindingHasRMPolicy

protected boolean bindingHasRMPolicy()
Overrides:
bindingHasRMPolicy in class WSITAuthContextBase

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


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