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
|
Method Summary |
protected abstract void |
addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
|
protected abstract com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder |
addIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy,
PolicyAlternativeHolder ph)
|
protected abstract void |
addIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
String protocol,
PolicyAlternativeHolder ph)
|
protected abstract void |
addOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
|
protected abstract com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder |
addOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy,
PolicyAlternativeHolder ph)
|
protected abstract void |
addOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
String protocol,
PolicyAlternativeHolder ph)
|
protected boolean |
bindingHasIssuedTokenPolicy()
|
protected boolean |
bindingHasRMPolicy()
|
protected boolean |
bindingHasSecureConversationPolicy()
|
protected void |
buildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy,
PolicyAlternativeHolder ph)
|
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation |
cachedOperation(com.sun.xml.ws.api.message.Packet packet)
|
protected void |
cacheMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation |
cacheOperation(com.sun.xml.ws.api.message.Message msg,
com.sun.xml.ws.api.message.Packet packet)
|
protected void |
cacheOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation op,
com.sun.xml.ws.api.message.Packet packet)
|
protected void |
collectPolicies(com.sun.xml.ws.policy.PolicyMap wsPolicyMap,
List<PolicyAlternativeHolder> alternatives)
Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ). |
protected com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder |
constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming)
|
protected com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder |
constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming,
boolean ignoreST)
|
protected RuntimeException |
generateInternalError(com.sun.xml.ws.policy.PolicyException ex)
|
protected String |
getAction(com.sun.xml.ws.api.message.Packet packet)
|
protected abstract String |
getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation,
boolean isIncomming)
|
protected AlgorithmSuite |
getAlgoSuite(com.sun.xml.ws.security.policy.AlgorithmSuite suite)
|
protected com.sun.xml.ws.security.policy.AlgorithmSuite |
getBindingAlgorithmSuite(com.sun.xml.ws.api.message.Packet packet)
|
protected com.sun.xml.ws.policy.Policy |
getEffectiveBootstrapPolicy(com.sun.xml.ws.policy.NestedPolicy bp)
|
protected List<com.sun.xml.ws.policy.PolicyAssertion> |
getInBoundSCP(com.sun.xml.ws.api.message.Message message)
|
protected List<com.sun.xml.ws.policy.PolicyAssertion> |
getIssuedTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion)
|
protected List<com.sun.xml.ws.policy.PolicyAssertion> |
getKerberosTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion)
|
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation |
getOperation(com.sun.xml.ws.api.message.Message message,
com.sun.xml.ws.api.message.Packet packet)
|
protected com.sun.xml.ws.policy.PolicyMapKey |
getOperationKey(com.sun.xml.ws.api.message.Message message)
|
protected List<com.sun.xml.ws.policy.PolicyAssertion> |
getOutBoundKTP(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected List<com.sun.xml.ws.policy.PolicyAssertion> |
getOutBoundSCP(com.sun.xml.ws.api.message.Message message)
|
protected MessagePolicy |
getOutgoingXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion)
|
protected MessagePolicy |
getOutgoingXWSSecurityPolicy(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected com.sun.xml.ws.api.message.Packet |
getRequestPacket(MessageInfo messageInfo)
|
protected com.sun.xml.ws.api.message.Packet |
getResponsePacket(MessageInfo messageInfo)
|
protected List<com.sun.xml.ws.policy.PolicyAssertion> |
getSecureConversationPolicies(com.sun.xml.ws.api.message.Message message,
String scope)
|
protected javax.xml.soap.SOAPFault |
getSOAPFault(WssSoapFaultException sfe)
|
protected javax.xml.ws.soap.SOAPFaultException |
getSOAPFaultException(WssSoapFaultException sfe)
|
protected javax.xml.ws.soap.SOAPFaultException |
getSOAPFaultException(XWSSecurityException xwse)
|
protected ArrayList<com.sun.xml.ws.policy.PolicyAssertion> |
getTokens(com.sun.xml.ws.policy.Policy policy)
|
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation |
getWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet,
boolean isIncomming)
|
protected WSSAssertion |
getWssAssertion(com.sun.xml.ws.security.policy.WSSAssertion asser)
|
protected boolean |
hasKerberosTokenPolicy()
|
protected ProcessingContext |
initializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet)
|
protected ProcessingContext |
initializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected boolean |
isAddressingEnabled()
|
protected boolean |
isMakeConnectionMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isRMMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isSCCancel(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isSCMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isSCRenew(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isTrustMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected Class |
loadClass(String classname)
|
protected CallbackHandler |
loadGFHandler(boolean isClientAuthModule,
String jmacHandler)
|
protected String |
populateConfigProperties(Set configAssertions,
Properties props)
|
protected void |
resetCachedOperation(com.sun.xml.ws.api.message.Packet packet)
|
protected PolicyAlternativeHolder |
resolveAlternative(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected com.sun.xml.ws.api.message.Message |
secureOutboundMessage(com.sun.xml.ws.api.message.Message message,
ProcessingContext ctx)
|
protected javax.xml.soap.SOAPMessage |
secureOutboundMessage(javax.xml.soap.SOAPMessage message,
ProcessingContext ctx)
|
protected void |
setRequestPacket(MessageInfo messageInfo,
com.sun.xml.ws.api.message.Packet ret)
|
protected void |
setResponsePacket(MessageInfo messageInfo,
com.sun.xml.ws.api.message.Packet ret)
|
protected com.sun.xml.ws.policy.sourcemodel.PolicySourceModel |
unmarshalPolicy(String resource)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Logger log
issuedTokenContextMap
protected Hashtable<String,com.sun.xml.ws.security.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 javax.xml.bind.JAXBContext jaxbContext
wsscVer
protected com.sun.xml.ws.security.secconv.WSSCVersion wsscVer
wsTrustVer
protected com.sun.xml.ws.security.trust.WSTrustVersion wsTrustVer
rmVer
protected com.sun.xml.ws.rx.rm.api.RmProtocolVersion rmVer
mcVer
protected com.sun.xml.ws.rx.mc.api.McProtocolVersion mcVer
securityPolicyNamespaces
protected static final ArrayList<String> securityPolicyNamespaces
EMPTY_LIST
protected static final List<com.sun.xml.ws.policy.PolicyAssertion> EMPTY_LIST
debug
protected static final boolean debug
nextPipe
protected com.sun.xml.ws.api.pipe.Pipe nextPipe
nextTube
protected com.sun.xml.ws.api.pipe.Tube nextTube
optimized
protected boolean optimized
pipeConfig
protected TubeConfiguration pipeConfig
secEnv
protected SecurityEnvironment secEnv
isSOAP12
protected boolean isSOAP12
soapVersion
protected com.sun.xml.ws.api.SOAPVersion soapVersion
soapFactory
protected javax.xml.soap.SOAPFactory soapFactory
policyAlternatives
protected List<PolicyAlternativeHolder> policyAlternatives
bpMSP
protected com.sun.xml.ws.policy.Policy bpMSP
marshaller
protected javax.xml.bind.Marshaller marshaller
unmarshaller
protected javax.xml.bind.Unmarshaller unmarshaller
bindingLevelAlgSuite
protected com.sun.xml.ws.security.policy.AlgorithmSuite bindingLevelAlgSuite
spVersion
protected com.sun.xml.ws.security.policy.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
WSITAuthContextBase
public WSITAuthContextBase(Map<Object,Object> map)
- Creates a new instance of WSITAuthContextBase
collectPolicies
protected void collectPolicies(com.sun.xml.ws.policy.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(com.sun.xml.ws.policy.PolicyException ex)
getInBoundSCP
protected List<com.sun.xml.ws.policy.PolicyAssertion> getInBoundSCP(com.sun.xml.ws.api.message.Message message)
getOutBoundSCP
protected List<com.sun.xml.ws.policy.PolicyAssertion> getOutBoundSCP(com.sun.xml.ws.api.message.Message message)
getOutBoundKTP
protected List<com.sun.xml.ws.policy.PolicyAssertion> getOutBoundKTP(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
getSecureConversationPolicies
protected List<com.sun.xml.ws.policy.PolicyAssertion> getSecureConversationPolicies(com.sun.xml.ws.api.message.Message message,
String scope)
getTokens
protected ArrayList<com.sun.xml.ws.policy.PolicyAssertion> getTokens(com.sun.xml.ws.policy.Policy policy)
getOperationKey
protected com.sun.xml.ws.policy.PolicyMapKey getOperationKey(com.sun.xml.ws.api.message.Message message)
addOutgoingMP
protected abstract com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder addOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy,
PolicyAlternativeHolder ph)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addIncomingMP
protected abstract com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder addIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy,
PolicyAlternativeHolder ph)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
getBindingAlgorithmSuite
protected com.sun.xml.ws.security.policy.AlgorithmSuite getBindingAlgorithmSuite(com.sun.xml.ws.api.message.Packet packet)
cacheMessage
protected void cacheMessage(com.sun.xml.ws.api.message.Packet packet)
getEffectiveBootstrapPolicy
protected com.sun.xml.ws.policy.Policy getEffectiveBootstrapPolicy(com.sun.xml.ws.policy.NestedPolicy bp)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
unmarshalPolicy
protected com.sun.xml.ws.policy.sourcemodel.PolicySourceModel unmarshalPolicy(String resource)
throws com.sun.xml.ws.policy.PolicyException,
IOException
- Throws:
com.sun.xml.ws.policy.PolicyException
IOException
cacheOperation
protected final com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation cacheOperation(com.sun.xml.ws.api.message.Message msg,
com.sun.xml.ws.api.message.Packet packet)
resetCachedOperation
protected final void resetCachedOperation(com.sun.xml.ws.api.message.Packet packet)
cacheOperation
protected final void cacheOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation op,
com.sun.xml.ws.api.message.Packet packet)
cachedOperation
protected final com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation cachedOperation(com.sun.xml.ws.api.message.Packet packet)
isSCMessage
protected boolean isSCMessage(com.sun.xml.ws.api.message.Packet packet)
isSCRenew
protected boolean isSCRenew(com.sun.xml.ws.api.message.Packet packet)
isSCCancel
protected boolean isSCCancel(com.sun.xml.ws.api.message.Packet packet)
isAddressingEnabled
protected boolean isAddressingEnabled()
isTrustMessage
protected boolean isTrustMessage(com.sun.xml.ws.api.message.Packet packet)
isRMMessage
protected boolean isRMMessage(com.sun.xml.ws.api.message.Packet packet)
isMakeConnectionMessage
protected boolean isMakeConnectionMessage(com.sun.xml.ws.api.message.Packet packet)
getAction
protected String getAction(com.sun.xml.ws.api.message.Packet packet)
getWSDLOpFromAction
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet,
boolean isIncomming)
buildProtocolPolicy
protected void buildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy,
PolicyAlternativeHolder ph)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
constructPolicyHolder
protected com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
constructPolicyHolder
protected com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming,
boolean ignoreST)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
getIssuedTokenPoliciesFromBootstrapPolicy
protected List<com.sun.xml.ws.policy.PolicyAssertion> getIssuedTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion)
getKerberosTokenPoliciesFromBootstrapPolicy
protected List<com.sun.xml.ws.policy.PolicyAssertion> getKerberosTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion)
populateConfigProperties
protected String populateConfigProperties(Set configAssertions,
Properties props)
initializeInboundProcessingContext
protected ProcessingContext initializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet)
getAlgoSuite
protected AlgorithmSuite getAlgoSuite(com.sun.xml.ws.security.policy.AlgorithmSuite suite)
getWssAssertion
protected WSSAssertion getWssAssertion(com.sun.xml.ws.security.policy.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 com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getOperation(com.sun.xml.ws.api.message.Message message,
com.sun.xml.ws.api.message.Packet packet)
initializeOutgoingProcessingContext
protected ProcessingContext initializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
getOutgoingXWSSecurityPolicy
protected MessagePolicy getOutgoingXWSSecurityPolicy(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
getOutgoingXWSBootstrapPolicy
protected MessagePolicy getOutgoingXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion)
getSOAPFaultException
protected javax.xml.ws.soap.SOAPFaultException getSOAPFaultException(WssSoapFaultException sfe)
getSOAPFaultException
protected javax.xml.ws.soap.SOAPFaultException getSOAPFaultException(XWSSecurityException xwse)
secureOutboundMessage
protected javax.xml.soap.SOAPMessage secureOutboundMessage(javax.xml.soap.SOAPMessage message,
ProcessingContext ctx)
secureOutboundMessage
protected com.sun.xml.ws.api.message.Message secureOutboundMessage(com.sun.xml.ws.api.message.Message message,
ProcessingContext ctx)
getSOAPFault
protected javax.xml.soap.SOAPFault getSOAPFault(WssSoapFaultException sfe)
loadGFHandler
protected CallbackHandler loadGFHandler(boolean isClientAuthModule,
String jmacHandler)
getRequestPacket
protected com.sun.xml.ws.api.message.Packet getRequestPacket(MessageInfo messageInfo)
getResponsePacket
protected com.sun.xml.ws.api.message.Packet getResponsePacket(MessageInfo messageInfo)
setRequestPacket
protected void setRequestPacket(MessageInfo messageInfo,
com.sun.xml.ws.api.message.Packet ret)
setResponsePacket
protected void setResponsePacket(MessageInfo messageInfo,
com.sun.xml.ws.api.message.Packet ret)
addIncomingFaultPolicy
protected abstract void addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addOutgoingFaultPolicy
protected abstract void addOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
com.sun.xml.ws.security.impl.policyconv.SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addIncomingProtocolPolicy
protected abstract void addIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
String protocol,
PolicyAlternativeHolder ph)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addOutgoingProtocolPolicy
protected abstract void addOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
String protocol,
PolicyAlternativeHolder ph)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
getAction
protected abstract String getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation,
boolean isIncomming)
resolveAlternative
protected PolicyAlternativeHolder resolveAlternative(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.