Package com.sun.xml.wss.provider.wsit
Class WSITAuthContextBase
java.lang.Object
com.sun.xml.wss.provider.wsit.WSITAuthContextBase
- Direct Known Subclasses:
WSITClientAuthContext,WSITServerAuthContext
- Author:
- kumar jayanti
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected AlgorithmSuiteprotected com.sun.xml.ws.policy.Policyprotected static final booleanprotected static final Stringprotected booleanprotected static final List<com.sun.xml.ws.policy.PolicyAssertion>protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intprotected static final javax.xml.bind.JAXBContextprotected static final Loggerprotected javax.xml.bind.Marshallerprotected com.sun.xml.ws.rx.mc.api.McProtocolVersionprotected com.sun.xml.ws.api.pipe.Pipeprotected com.sun.xml.ws.api.pipe.Tubeprotected booleanprotected TubeConfigurationprotected List<PolicyAlternativeHolder>protected static final Stringprotected static final Stringprotected com.sun.xml.ws.rx.rm.api.RmProtocolVersionprotected SecurityEnvironmentprotected booleanprotected X509Certificateprotected javax.xml.soap.SOAPFactoryprotected com.sun.xml.ws.api.SOAPVersionprotected com.sun.xml.ws.security.policy.SecurityPolicyVersionprotected longprotected javax.xml.bind.Unmarshallerprotected static final Stringprotected static final Stringprotected com.sun.xml.ws.security.secconv.WSSCVersionprotected com.sun.xml.ws.security.trust.WSTrustVersion -
Constructor Summary
ConstructorsConstructorDescriptionWSITAuthContextBase(Map<Object, Object> map) Creates a new instance of WSITAuthContextBase -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, SecurityPolicyHolder sph, com.sun.xml.ws.api.model.wsdl.WSDLFault fault) protected abstract SecurityPolicyHolderaddIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation, com.sun.xml.ws.policy.Policy policy, PolicyAlternativeHolder ph) protected abstract voidaddIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected abstract voidaddOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, SecurityPolicyHolder sph, com.sun.xml.ws.api.model.wsdl.WSDLFault fault) protected abstract SecurityPolicyHolderaddOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation, com.sun.xml.ws.policy.Policy policy, PolicyAlternativeHolder ph) protected abstract voidaddOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected booleanprotected booleanprotected booleanprotected voidbuildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy, PolicyAlternativeHolder ph) protected final com.sun.xml.ws.api.model.wsdl.WSDLBoundOperationcachedOperation(com.sun.xml.ws.api.message.Packet packet) protected voidcacheMessage(com.sun.xml.ws.api.message.Packet packet) protected final com.sun.xml.ws.api.model.wsdl.WSDLBoundOperationcacheOperation(com.sun.xml.ws.api.message.Message msg, com.sun.xml.ws.api.message.Packet packet) protected final voidcacheOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation op, com.sun.xml.ws.api.message.Packet packet) protected voidcollectPolicies(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 SecurityPolicyHolderconstructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy, boolean isServer, boolean isIncoming) protected SecurityPolicyHolderconstructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy, boolean isServer, boolean isIncoming, boolean ignoreST) protected RuntimeExceptiongenerateInternalError(com.sun.xml.ws.policy.PolicyException ex) protected StringgetAction(com.sun.xml.ws.api.message.Packet packet) protected abstract StringgetAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation, boolean isIncomming) protected AlgorithmSuitegetAlgoSuite(AlgorithmSuite suite) protected AlgorithmSuitegetBindingAlgorithmSuite(com.sun.xml.ws.api.message.Packet packet) protected com.sun.xml.ws.policy.PolicygetEffectiveBootstrapPolicy(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.WSDLBoundOperationgetOperation(com.sun.xml.ws.api.message.Message message, com.sun.xml.ws.api.message.Packet packet) protected com.sun.xml.ws.policy.PolicyMapKeygetOperationKey(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 MessagePolicygetOutgoingXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) protected MessagePolicygetOutgoingXWSSecurityPolicy(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected com.sun.xml.ws.api.message.PacketgetRequestPacket(javax.security.auth.message.MessageInfo messageInfo) protected com.sun.xml.ws.api.message.PacketgetResponsePacket(javax.security.auth.message.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.SOAPFaultprotected javax.xml.ws.soap.SOAPFaultExceptionprotected javax.xml.ws.soap.SOAPFaultExceptiongetSOAPFaultException(com.sun.xml.wss.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.WSDLBoundOperationgetWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet, boolean isIncomming) protected WSSAssertiongetWssAssertion(WSSAssertion asser) protected booleanprotected ProcessingContextinitializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet) protected ProcessingContextinitializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected booleanprotected booleanisMakeConnectionMessage(com.sun.xml.ws.api.message.Packet packet) protected booleanisRMMessage(com.sun.xml.ws.api.message.Packet packet) protected booleanisSCCancel(com.sun.xml.ws.api.message.Packet packet) protected booleanisSCMessage(com.sun.xml.ws.api.message.Packet packet) protected booleanisSCRenew(com.sun.xml.ws.api.message.Packet packet) protected booleanisTrustMessage(com.sun.xml.ws.api.message.Packet packet) protected Classprotected CallbackHandlerloadGFHandler(boolean isClientAuthModule, String jmacHandler) protected StringpopulateConfigProperties(Set configAssertions, Properties props) protected final voidresetCachedOperation(com.sun.xml.ws.api.message.Packet packet) protected PolicyAlternativeHolderresolveAlternative(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected com.sun.xml.ws.api.message.MessagesecureOutboundMessage(com.sun.xml.ws.api.message.Message message, ProcessingContext ctx) protected javax.xml.soap.SOAPMessagesecureOutboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) protected voidsetRequestPacket(javax.security.auth.message.MessageInfo messageInfo, com.sun.xml.ws.api.message.Packet ret) protected voidsetResponsePacket(javax.security.auth.message.MessageInfo messageInfo, com.sun.xml.ws.api.message.Packet ret) protected com.sun.xml.ws.policy.sourcemodel.PolicySourceModelunmarshalPolicy(String resource)
-
Field Details
-
log
-
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
-
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
-
secEnv
-
isSOAP12
protected boolean isSOAP12 -
soapVersion
protected com.sun.xml.ws.api.SOAPVersion soapVersion -
soapFactory
protected javax.xml.soap.SOAPFactory soapFactory -
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
-
spVersion
protected com.sun.xml.ws.security.policy.SecurityPolicyVersion spVersion -
REQ_PACKET
- See Also:
-
RES_PACKET
- See Also:
-
DEFAULT_JMAC_HANDLER
- See Also:
-
WSDLPORT
- See Also:
-
WSENDPOINT
- See Also:
-
serverCert
-
isCertValidityVerified
protected boolean isCertValidityVerified -
timestampTimeOut
protected long timestampTimeOut -
iterationsForPDK
protected int iterationsForPDK -
isEPREnabled
protected boolean isEPREnabled -
isCertValid
protected boolean isCertValid
-
-
Constructor Details
-
WSITAuthContextBase
Creates a new instance of WSITAuthContextBase
-
-
Method Details
-
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
-
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
-
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 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 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
-
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.PolicyExceptionIOException
-
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
-
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 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 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
-
initializeInboundProcessingContext
protected ProcessingContext initializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet) -
getAlgoSuite
-
getWssAssertion
-
bindingHasIssuedTokenPolicy
protected boolean bindingHasIssuedTokenPolicy() -
bindingHasSecureConversationPolicy
protected boolean bindingHasSecureConversationPolicy() -
hasKerberosTokenPolicy
protected boolean hasKerberosTokenPolicy() -
bindingHasRMPolicy
protected boolean bindingHasRMPolicy() -
loadClass
- 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
-
getSOAPFaultException
protected javax.xml.ws.soap.SOAPFaultException getSOAPFaultException(com.sun.xml.wss.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
-
loadGFHandler
-
getRequestPacket
protected com.sun.xml.ws.api.message.Packet getRequestPacket(javax.security.auth.message.MessageInfo messageInfo) -
getResponsePacket
protected com.sun.xml.ws.api.message.Packet getResponsePacket(javax.security.auth.message.MessageInfo messageInfo) -
setRequestPacket
protected void setRequestPacket(javax.security.auth.message.MessageInfo messageInfo, com.sun.xml.ws.api.message.Packet ret) -
setResponsePacket
protected void setResponsePacket(javax.security.auth.message.MessageInfo messageInfo, com.sun.xml.ws.api.message.Packet ret) -
addIncomingFaultPolicy
protected abstract void addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, 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, 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)
-