Package com.sun.xml.wss.provider.wsit
Class WSITAuthContextBase
- java.lang.Object
-
- com.sun.xml.wss.provider.wsit.WSITAuthContextBase
-
- Direct Known Subclasses:
WSITClientAuthContext
,WSITServerAuthContext
public abstract class WSITAuthContextBase extends Object
- Author:
- kumar jayanti
-
-
Field Summary
Fields Modifier and Type Field Description 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 jakarta.xml.bind.JAXBContext
jaxbContext
protected static Logger
log
protected jakarta.xml.bind.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 jakarta.xml.soap.SOAPFactory
soapFactory
protected SOAPVersion
soapVersion
protected SecurityPolicyVersion
spVersion
protected long
timestampTimeOut
protected jakarta.xml.bind.Unmarshaller
unmarshaller
protected static String
WSDLPORT
protected static String
WSENDPOINT
protected WSSCVersion
wsscVer
protected WSTrustVersion
wsTrustVer
-
Constructor Summary
Constructors Constructor Description WSITAuthContextBase(Map<Object,Object> map)
Creates a new instance of WSITAuthContextBase
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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(jakarta.security.auth.message.MessageInfo messageInfo)
protected Packet
getResponsePacket(jakarta.security.auth.message.MessageInfo messageInfo)
protected List<PolicyAssertion>
getSecureConversationPolicies(Message message, String scope)
protected jakarta.xml.soap.SOAPFault
getSOAPFault(WssSoapFaultException sfe)
protected jakarta.xml.ws.soap.SOAPFaultException
getSOAPFaultException(WssSoapFaultException sfe)
protected jakarta.xml.ws.soap.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 jakarta.xml.soap.SOAPMessage
secureOutboundMessage(jakarta.xml.soap.SOAPMessage message, ProcessingContext ctx)
protected void
setRequestPacket(jakarta.security.auth.message.MessageInfo messageInfo, Packet ret)
protected void
setResponsePacket(jakarta.security.auth.message.MessageInfo messageInfo, Packet ret)
protected PolicySourceModel
unmarshalPolicy(String resource)
-
-
-
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 jakarta.xml.bind.JAXBContext jaxbContext
-
wsscVer
protected WSSCVersion wsscVer
-
wsTrustVer
protected WSTrustVersion wsTrustVer
-
rmVer
protected RmProtocolVersion rmVer
-
mcVer
protected McProtocolVersion mcVer
-
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 jakarta.xml.soap.SOAPFactory soapFactory
-
policyAlternatives
protected List<PolicyAlternativeHolder> policyAlternatives
-
bpMSP
protected Policy bpMSP
-
marshaller
protected jakarta.xml.bind.Marshaller marshaller
-
unmarshaller
protected jakarta.xml.bind.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
-
-
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)
-
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()
-
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 jakarta.xml.ws.soap.SOAPFaultException getSOAPFaultException(WssSoapFaultException sfe)
-
getSOAPFaultException
protected jakarta.xml.ws.soap.SOAPFaultException getSOAPFaultException(XWSSecurityException xwse)
-
secureOutboundMessage
protected jakarta.xml.soap.SOAPMessage secureOutboundMessage(jakarta.xml.soap.SOAPMessage message, ProcessingContext ctx)
-
secureOutboundMessage
protected Message secureOutboundMessage(Message message, ProcessingContext ctx)
-
getSOAPFault
protected jakarta.xml.soap.SOAPFault getSOAPFault(WssSoapFaultException sfe)
-
loadGFHandler
protected CallbackHandler loadGFHandler(boolean isClientAuthModule, String jmacHandler)
-
getRequestPacket
protected Packet getRequestPacket(jakarta.security.auth.message.MessageInfo messageInfo)
-
getResponsePacket
protected Packet getResponsePacket(jakarta.security.auth.message.MessageInfo messageInfo)
-
setRequestPacket
protected void setRequestPacket(jakarta.security.auth.message.MessageInfo messageInfo, Packet ret)
-
setResponsePacket
protected void setResponsePacket(jakarta.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)
-
-