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

java.lang.Object
  extended by com.sun.xml.wss.provider.wsit.WSITAuthContextBase
Direct Known Subclasses:
WSITClientAuthContext, WSITServerAuthContext

public abstract class WSITAuthContextBase
extends Object

Author:
kumar jayanti

Field Summary
protected  boolean allowMissingTimestamp
           
protected  AlgorithmSuite bindingLevelAlgSuite
           
protected  Policy bpMSP
           
protected static boolean debug
           
protected static String DEFAULT_JMAC_HANDLER
           
protected  boolean disableIncPrefix
           
protected static List<PolicyAssertion> EMPTY_LIST
           
protected  boolean encHeaderContent
           
protected  boolean encRMLifecycleMsg
           
protected  boolean isCertValid
           
protected  boolean isCertValidityVerified
           
protected  boolean isEPREnabled
           
protected  boolean isSOAP12
           
protected  Hashtable<String,IssuedTokenContext> issuedTokenContextMap
           
protected  int iterationsForPDK
           
protected static JAXBContext jaxbContext
           
protected static Logger log
           
protected  Marshaller marshaller
           
protected  McProtocolVersion mcVer
           
protected  Pipe nextPipe
           
protected  Tube nextTube
           
protected  boolean optimized
           
protected  TubeConfiguration pipeConfig
           
protected  List<PolicyAlternativeHolder> policyAlternatives
           
protected static String REQ_PACKET
           
protected static String RES_PACKET
           
protected  RmProtocolVersion rmVer
           
protected  SecurityEnvironment secEnv
           
protected  boolean securityMUValue
           
protected static ArrayList<String> securityPolicyNamespaces
           
protected  X509Certificate serverCert
           
protected  SOAPFactory soapFactory
           
protected  SOAPVersion soapVersion
           
protected  SecurityPolicyVersion spVersion
           
protected  long timestampTimeOut
           
protected  Unmarshaller unmarshaller
           
protected static String WSDLPORT
           
protected static String WSENDPOINT
           
protected  WSSCVersion wsscVer
           
protected  WSTrustVersion wsTrustVer
           
 
Constructor Summary
WSITAuthContextBase(Map<Object,Object> map)
          Creates a new instance of WSITAuthContextBase
 
Method Summary
protected abstract  void addIncomingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault)
           
protected abstract  SecurityPolicyHolder addIncomingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph)
           
protected abstract  void addIncomingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph)
           
protected abstract  void addOutgoingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault)
           
protected abstract  SecurityPolicyHolder addOutgoingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph)
           
protected abstract  void addOutgoingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph)
           
protected  boolean bindingHasIssuedTokenPolicy()
           
protected  boolean bindingHasRMPolicy()
           
protected  boolean bindingHasSecureConversationPolicy()
           
protected  void buildProtocolPolicy(Policy endpointPolicy, PolicyAlternativeHolder ph)
           
protected  WSDLBoundOperation cachedOperation(Packet packet)
           
protected  void cacheMessage(Packet packet)
           
protected  WSDLBoundOperation cacheOperation(Message msg, Packet packet)
           
protected  void cacheOperation(WSDLBoundOperation op, Packet packet)
           
protected  void collectPolicies(PolicyMap wsPolicyMap, List<PolicyAlternativeHolder> alternatives)
          Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ).
protected  SecurityPolicyHolder constructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming)
           
protected  SecurityPolicyHolder constructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming, boolean ignoreST)
           
protected  RuntimeException generateInternalError(PolicyException ex)
           
protected  String getAction(Packet packet)
           
protected abstract  String getAction(WSDLOperation operation, boolean isIncomming)
           
protected  AlgorithmSuite getAlgoSuite(AlgorithmSuite suite)
           
protected  AlgorithmSuite getBindingAlgorithmSuite(Packet packet)
           
protected  Policy getEffectiveBootstrapPolicy(NestedPolicy bp)
           
protected  List<PolicyAssertion> getInBoundSCP(Message message)
           
protected  List<PolicyAssertion> getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion)
           
protected  List<PolicyAssertion> getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion)
           
protected  WSDLBoundOperation getOperation(Message message, Packet packet)
           
protected  PolicyMapKey getOperationKey(Message message)
           
protected  List<PolicyAssertion> getOutBoundKTP(Packet packet, boolean isSCMessage)
           
protected  List<PolicyAssertion> getOutBoundSCP(Message message)
           
protected  MessagePolicy getOutgoingXWSBootstrapPolicy(Token scAssertion)
           
protected  MessagePolicy getOutgoingXWSSecurityPolicy(Packet packet, boolean isSCMessage)
           
protected  Packet getRequestPacket(javax.security.auth.message.MessageInfo messageInfo)
           
protected  Packet getResponsePacket(javax.security.auth.message.MessageInfo messageInfo)
           
protected  List<PolicyAssertion> getSecureConversationPolicies(Message message, String scope)
           
protected  SOAPFault getSOAPFault(WssSoapFaultException sfe)
           
protected  SOAPFaultException getSOAPFaultException(WssSoapFaultException sfe)
           
protected  SOAPFaultException getSOAPFaultException(XWSSecurityException xwse)
           
protected  ArrayList<PolicyAssertion> getTokens(Policy policy)
           
protected  WSDLBoundOperation getWSDLOpFromAction(Packet packet, boolean isIncomming)
           
protected  WSSAssertion getWssAssertion(WSSAssertion asser)
           
protected  boolean hasKerberosTokenPolicy()
           
protected  ProcessingContext initializeInboundProcessingContext(Packet packet)
           
protected  ProcessingContext initializeOutgoingProcessingContext(Packet packet, boolean isSCMessage)
           
protected  boolean isAddressingEnabled()
           
protected  boolean isMakeConnectionMessage(Packet packet)
           
protected  boolean isRMMessage(Packet packet)
           
protected  boolean isSCCancel(Packet packet)
           
protected  boolean isSCMessage(Packet packet)
           
protected  boolean isSCRenew(Packet packet)
           
protected  boolean isTrustMessage(Packet packet)
           
protected  Class loadClass(String classname)
           
protected  CallbackHandler loadGFHandler(boolean isClientAuthModule, String jmacHandler)
           
protected  String populateConfigProperties(Set configAssertions, Properties props)
           
protected  void resetCachedOperation(Packet packet)
           
protected  PolicyAlternativeHolder resolveAlternative(Packet packet, boolean isSCMessage)
           
protected  Message secureOutboundMessage(Message message, ProcessingContext ctx)
           
protected  SOAPMessage secureOutboundMessage(SOAPMessage message, ProcessingContext ctx)
           
protected  void setRequestPacket(javax.security.auth.message.MessageInfo messageInfo, Packet ret)
           
protected  void setResponsePacket(javax.security.auth.message.MessageInfo messageInfo, Packet ret)
           
protected  PolicySourceModel unmarshalPolicy(String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

issuedTokenContextMap

protected Hashtable<String,IssuedTokenContext> issuedTokenContextMap

disableIncPrefix

protected boolean disableIncPrefix

encRMLifecycleMsg

protected boolean encRMLifecycleMsg

encHeaderContent

protected boolean encHeaderContent

allowMissingTimestamp

protected boolean allowMissingTimestamp

securityMUValue

protected boolean securityMUValue

jaxbContext

protected static final JAXBContext jaxbContext

wsscVer

protected WSSCVersion wsscVer

wsTrustVer

protected WSTrustVersion wsTrustVer

rmVer

protected RmProtocolVersion rmVer

mcVer

protected McProtocolVersion mcVer

securityPolicyNamespaces

protected static final ArrayList<String> securityPolicyNamespaces

EMPTY_LIST

protected static final List<PolicyAssertion> EMPTY_LIST

debug

protected static final boolean debug

nextPipe

protected Pipe nextPipe

nextTube

protected Tube nextTube

optimized

protected boolean optimized

pipeConfig

protected TubeConfiguration pipeConfig

secEnv

protected SecurityEnvironment secEnv

isSOAP12

protected boolean isSOAP12

soapVersion

protected SOAPVersion soapVersion

soapFactory

protected SOAPFactory soapFactory

policyAlternatives

protected List<PolicyAlternativeHolder> policyAlternatives

bpMSP

protected Policy bpMSP

marshaller

protected Marshaller marshaller

unmarshaller

protected Unmarshaller unmarshaller

bindingLevelAlgSuite

protected AlgorithmSuite bindingLevelAlgSuite

spVersion

protected SecurityPolicyVersion spVersion

REQ_PACKET

protected static final String REQ_PACKET
See Also:
Constant Field Values

RES_PACKET

protected static final String RES_PACKET
See Also:
Constant Field Values

DEFAULT_JMAC_HANDLER

protected static final String DEFAULT_JMAC_HANDLER
See Also:
Constant Field Values

WSDLPORT

protected static final String WSDLPORT
See Also:
Constant Field Values

WSENDPOINT

protected static final String WSENDPOINT
See Also:
Constant Field Values

serverCert

protected X509Certificate serverCert

isCertValidityVerified

protected boolean isCertValidityVerified

timestampTimeOut

protected long timestampTimeOut

iterationsForPDK

protected int iterationsForPDK

isEPREnabled

protected boolean isEPREnabled

isCertValid

protected boolean isCertValid
Constructor Detail

WSITAuthContextBase

public WSITAuthContextBase(Map<Object,Object> map)
Creates a new instance of WSITAuthContextBase

Method Detail

collectPolicies

protected void collectPolicies(PolicyMap wsPolicyMap,
                               List<PolicyAlternativeHolder> alternatives)
Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ). MessagePolicySubject : policy can be attached to 1) wsdl:binding/wsdl:operation/wsdl:input, ./wsdl:output, or ./wsdl:fault OperationPolicySubject : policy can be attached to 1)wsdl:binding/wsdl:operation EndpointPolicySubject : policy can be attached to 1)wsdl:port 2)wsdl:Binding


generateInternalError

protected RuntimeException generateInternalError(PolicyException ex)

getInBoundSCP

protected List<PolicyAssertion> getInBoundSCP(Message message)

getOutBoundSCP

protected List<PolicyAssertion> getOutBoundSCP(Message message)

getOutBoundKTP

protected List<PolicyAssertion> getOutBoundKTP(Packet packet,
                                               boolean isSCMessage)

getSecureConversationPolicies

protected List<PolicyAssertion> getSecureConversationPolicies(Message message,
                                                              String scope)

getTokens

protected ArrayList<PolicyAssertion> getTokens(Policy policy)

getOperationKey

protected PolicyMapKey getOperationKey(Message message)

addOutgoingMP

protected abstract SecurityPolicyHolder addOutgoingMP(WSDLBoundOperation operation,
                                                      Policy policy,
                                                      PolicyAlternativeHolder ph)
                                               throws PolicyException
Throws:
PolicyException

addIncomingMP

protected abstract SecurityPolicyHolder addIncomingMP(WSDLBoundOperation operation,
                                                      Policy policy,
                                                      PolicyAlternativeHolder ph)
                                               throws PolicyException
Throws:
PolicyException

getBindingAlgorithmSuite

protected AlgorithmSuite getBindingAlgorithmSuite(Packet packet)

cacheMessage

protected void cacheMessage(Packet packet)

getEffectiveBootstrapPolicy

protected Policy getEffectiveBootstrapPolicy(NestedPolicy bp)
                                      throws PolicyException
Throws:
PolicyException

unmarshalPolicy

protected PolicySourceModel unmarshalPolicy(String resource)
                                     throws PolicyException,
                                            IOException
Throws:
PolicyException
IOException

cacheOperation

protected final WSDLBoundOperation cacheOperation(Message msg,
                                                  Packet packet)

resetCachedOperation

protected final void resetCachedOperation(Packet packet)

cacheOperation

protected final void cacheOperation(WSDLBoundOperation op,
                                    Packet packet)

cachedOperation

protected final WSDLBoundOperation cachedOperation(Packet packet)

isSCMessage

protected boolean isSCMessage(Packet packet)

isSCRenew

protected boolean isSCRenew(Packet packet)

isSCCancel

protected boolean isSCCancel(Packet packet)

isAddressingEnabled

protected boolean isAddressingEnabled()

isTrustMessage

protected boolean isTrustMessage(Packet packet)

isRMMessage

protected boolean isRMMessage(Packet packet)

isMakeConnectionMessage

protected boolean isMakeConnectionMessage(Packet packet)

getAction

protected String getAction(Packet packet)

getWSDLOpFromAction

protected WSDLBoundOperation getWSDLOpFromAction(Packet packet,
                                                 boolean isIncomming)

buildProtocolPolicy

protected void buildProtocolPolicy(Policy endpointPolicy,
                                   PolicyAlternativeHolder ph)
                            throws PolicyException
Throws:
PolicyException

constructPolicyHolder

protected SecurityPolicyHolder constructPolicyHolder(Policy effectivePolicy,
                                                     boolean isServer,
                                                     boolean isIncoming)
                                              throws PolicyException
Throws:
PolicyException

constructPolicyHolder

protected SecurityPolicyHolder constructPolicyHolder(Policy effectivePolicy,
                                                     boolean isServer,
                                                     boolean isIncoming,
                                                     boolean ignoreST)
                                              throws PolicyException
Throws:
PolicyException

getIssuedTokenPoliciesFromBootstrapPolicy

protected List<PolicyAssertion> getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion)

getKerberosTokenPoliciesFromBootstrapPolicy

protected List<PolicyAssertion> getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion)

populateConfigProperties

protected String populateConfigProperties(Set configAssertions,
                                          Properties props)

initializeInboundProcessingContext

protected ProcessingContext initializeInboundProcessingContext(Packet packet)

getAlgoSuite

protected AlgorithmSuite getAlgoSuite(AlgorithmSuite suite)

getWssAssertion

protected WSSAssertion getWssAssertion(WSSAssertion asser)

bindingHasIssuedTokenPolicy

protected boolean bindingHasIssuedTokenPolicy()

bindingHasSecureConversationPolicy

protected boolean bindingHasSecureConversationPolicy()

hasKerberosTokenPolicy

protected boolean hasKerberosTokenPolicy()

bindingHasRMPolicy

protected boolean bindingHasRMPolicy()

loadClass

protected Class loadClass(String classname)
                   throws Exception
Throws:
Exception

getOperation

protected WSDLBoundOperation getOperation(Message message,
                                          Packet packet)

initializeOutgoingProcessingContext

protected ProcessingContext initializeOutgoingProcessingContext(Packet packet,
                                                                boolean isSCMessage)

getOutgoingXWSSecurityPolicy

protected MessagePolicy getOutgoingXWSSecurityPolicy(Packet packet,
                                                     boolean isSCMessage)

getOutgoingXWSBootstrapPolicy

protected MessagePolicy getOutgoingXWSBootstrapPolicy(Token scAssertion)

getSOAPFaultException

protected SOAPFaultException getSOAPFaultException(WssSoapFaultException sfe)

getSOAPFaultException

protected SOAPFaultException getSOAPFaultException(XWSSecurityException xwse)

secureOutboundMessage

protected SOAPMessage secureOutboundMessage(SOAPMessage message,
                                            ProcessingContext ctx)

secureOutboundMessage

protected Message secureOutboundMessage(Message message,
                                        ProcessingContext ctx)

getSOAPFault

protected SOAPFault getSOAPFault(WssSoapFaultException sfe)

loadGFHandler

protected CallbackHandler loadGFHandler(boolean isClientAuthModule,
                                        String jmacHandler)

getRequestPacket

protected Packet getRequestPacket(javax.security.auth.message.MessageInfo messageInfo)

getResponsePacket

protected Packet getResponsePacket(javax.security.auth.message.MessageInfo messageInfo)

setRequestPacket

protected void setRequestPacket(javax.security.auth.message.MessageInfo messageInfo,
                                Packet ret)

setResponsePacket

protected void setResponsePacket(javax.security.auth.message.MessageInfo messageInfo,
                                 Packet ret)

addIncomingFaultPolicy

protected abstract void addIncomingFaultPolicy(Policy effectivePolicy,
                                               SecurityPolicyHolder sph,
                                               WSDLFault fault)
                                        throws PolicyException
Throws:
PolicyException

addOutgoingFaultPolicy

protected abstract void addOutgoingFaultPolicy(Policy effectivePolicy,
                                               SecurityPolicyHolder sph,
                                               WSDLFault fault)
                                        throws PolicyException
Throws:
PolicyException

addIncomingProtocolPolicy

protected abstract void addIncomingProtocolPolicy(Policy effectivePolicy,
                                                  String protocol,
                                                  PolicyAlternativeHolder ph)
                                           throws PolicyException
Throws:
PolicyException

addOutgoingProtocolPolicy

protected abstract void addOutgoingProtocolPolicy(Policy effectivePolicy,
                                                  String protocol,
                                                  PolicyAlternativeHolder ph)
                                           throws PolicyException
Throws:
PolicyException

getAction

protected abstract String getAction(WSDLOperation operation,
                                    boolean isIncomming)

resolveAlternative

protected PolicyAlternativeHolder resolveAlternative(Packet packet,
                                                     boolean isSCMessage)


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