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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddIncomingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault)protected abstract SecurityPolicyHolderaddIncomingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph)protected abstract voidaddIncomingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph)protected abstract voidaddOutgoingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault)protected abstract SecurityPolicyHolderaddOutgoingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph)protected abstract voidaddOutgoingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph)protected booleanbindingHasIssuedTokenPolicy()protected booleanbindingHasRMPolicy()protected booleanbindingHasSecureConversationPolicy()protected voidbuildProtocolPolicy(Policy endpointPolicy, PolicyAlternativeHolder ph)protected WSDLBoundOperationcachedOperation(Packet packet)protected voidcacheMessage(Packet packet)protected WSDLBoundOperationcacheOperation(Message msg, Packet packet)protected voidcacheOperation(WSDLBoundOperation op, Packet packet)protected voidcollectPolicies(PolicyMap wsPolicyMap, List<PolicyAlternativeHolder> alternatives)Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ).protected SecurityPolicyHolderconstructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming)protected SecurityPolicyHolderconstructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming, boolean ignoreST)protected RuntimeExceptiongenerateInternalError(PolicyException ex)protected StringgetAction(Packet packet)protected abstract StringgetAction(WSDLOperation operation, boolean isIncomming)protected AlgorithmSuitegetAlgoSuite(AlgorithmSuite suite)protected AlgorithmSuitegetBindingAlgorithmSuite(Packet packet)protected PolicygetEffectiveBootstrapPolicy(NestedPolicy bp)protected List<PolicyAssertion>getInBoundSCP(Message message)protected List<PolicyAssertion>getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion)protected List<PolicyAssertion>getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion)protected WSDLBoundOperationgetOperation(Message message, Packet packet)protected PolicyMapKeygetOperationKey(Message message)protected List<PolicyAssertion>getOutBoundKTP(Packet packet, boolean isSCMessage)protected List<PolicyAssertion>getOutBoundSCP(Message message)protected MessagePolicygetOutgoingXWSBootstrapPolicy(Token scAssertion)protected MessagePolicygetOutgoingXWSSecurityPolicy(Packet packet, boolean isSCMessage)protected PacketgetRequestPacket(jakarta.security.auth.message.MessageInfo messageInfo)protected PacketgetResponsePacket(jakarta.security.auth.message.MessageInfo messageInfo)protected List<PolicyAssertion>getSecureConversationPolicies(Message message, String scope)protected jakarta.xml.soap.SOAPFaultgetSOAPFault(WssSoapFaultException sfe)protected jakarta.xml.ws.soap.SOAPFaultExceptiongetSOAPFaultException(WssSoapFaultException sfe)protected jakarta.xml.ws.soap.SOAPFaultExceptiongetSOAPFaultException(XWSSecurityException xwse)protected ArrayList<PolicyAssertion>getTokens(Policy policy)protected WSDLBoundOperationgetWSDLOpFromAction(Packet packet, boolean isIncomming)protected WSSAssertiongetWssAssertion(WSSAssertion asser)protected booleanhasKerberosTokenPolicy()protected ProcessingContextinitializeInboundProcessingContext(Packet packet)protected ProcessingContextinitializeOutgoingProcessingContext(Packet packet, boolean isSCMessage)protected booleanisAddressingEnabled()protected booleanisMakeConnectionMessage(Packet packet)protected booleanisRMMessage(Packet packet)protected booleanisSCCancel(Packet packet)protected booleanisSCMessage(Packet packet)protected booleanisSCRenew(Packet packet)protected booleanisTrustMessage(Packet packet)protected ClassloadClass(String classname)protected CallbackHandlerloadGFHandler(boolean isClientAuthModule, String jmacHandler)protected StringpopulateConfigProperties(Set configAssertions, Properties props)protected voidresetCachedOperation(Packet packet)protected PolicyAlternativeHolderresolveAlternative(Packet packet, boolean isSCMessage)protected MessagesecureOutboundMessage(Message message, ProcessingContext ctx)protected jakarta.xml.soap.SOAPMessagesecureOutboundMessage(jakarta.xml.soap.SOAPMessage message, ProcessingContext ctx)protected voidsetRequestPacket(jakarta.security.auth.message.MessageInfo messageInfo, Packet ret)protected voidsetResponsePacket(jakarta.security.auth.message.MessageInfo messageInfo, Packet ret)protected PolicySourceModelunmarshalPolicy(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:
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(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)
-
-