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 booleanallowMissingTimestampprotected AlgorithmSuitebindingLevelAlgSuiteprotected PolicybpMSPprotected static booleandebugprotected static StringDEFAULT_JMAC_HANDLERprotected booleandisableIncPrefixprotected static List<PolicyAssertion>EMPTY_LISTprotected booleanencHeaderContentprotected booleanencRMLifecycleMsgprotected booleanisCertValidprotected booleanisCertValidityVerifiedprotected booleanisEPREnabledprotected booleanisSOAP12protected Hashtable<String,IssuedTokenContext>issuedTokenContextMapprotected intiterationsForPDKprotected static jakarta.xml.bind.JAXBContextjaxbContextprotected static Loggerlogprotected jakarta.xml.bind.Marshallermarshallerprotected McProtocolVersionmcVerprotected PipenextPipeprotected TubenextTubeprotected booleanoptimizedprotected TubeConfigurationpipeConfigprotected List<PolicyAlternativeHolder>policyAlternativesprotected static StringREQ_PACKETprotected static StringRES_PACKETprotected RmProtocolVersionrmVerprotected SecurityEnvironmentsecEnvprotected booleansecurityMUValueprotected static ArrayList<String>securityPolicyNamespacesprotected X509CertificateserverCertprotected jakarta.xml.soap.SOAPFactorysoapFactoryprotected SOAPVersionsoapVersionprotected SecurityPolicyVersionspVersionprotected longtimestampTimeOutprotected jakarta.xml.bind.Unmarshallerunmarshallerprotected static StringWSDLPORTprotected static StringWSENDPOINTprotected WSSCVersionwsscVerprotected WSTrustVersionwsTrustVer
-
Constructor Summary
Constructors Constructor Description WSITAuthContextBase(Map<Object,Object> map)Creates a new instance of WSITAuthContextBase
-
Method Summary
-
-
-
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:
PolicyExceptionIOException
-
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(MessageInfo messageInfo)
-
getResponsePacket
protected Packet getResponsePacket(MessageInfo messageInfo)
-
setRequestPacket
protected void setRequestPacket(MessageInfo messageInfo, Packet ret)
-
setResponsePacket
protected void setResponsePacket(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)
-
-