Package com.sun.xml.wss.provider.wsit
Class WSITClientAuthContext
java.lang.Object
com.sun.xml.wss.provider.wsit.WSITAuthContextBase
com.sun.xml.wss.provider.wsit.WSITClientAuthContext
- All Implemented Interfaces:
javax.security.auth.message.ClientAuth
,javax.security.auth.message.config.ClientAuthContext
public class WSITClientAuthContext
extends WSITAuthContextBase
implements javax.security.auth.message.config.ClientAuthContext
- Author:
- kumar jayanti
-
Field Summary
Fields inherited from class com.sun.xml.wss.provider.wsit.WSITAuthContextBase
allowMissingTimestamp, bindingLevelAlgSuite, bpMSP, debug, DEFAULT_JMAC_HANDLER, disableIncPrefix, EMPTY_LIST, encHeaderContent, encRMLifecycleMsg, isCertValid, isCertValidityVerified, isEPREnabled, isSOAP12, issuedTokenContextMap, iterationsForPDK, jaxbContext, log, marshaller, mcVer, nextPipe, nextTube, optimized, pipeConfig, policyAlternatives, REQ_PACKET, RES_PACKET, rmVer, secEnv, securityMUValue, securityPolicyNamespaces, serverCert, soapFactory, soapVersion, spVersion, timestampTimeOut, unmarshaller, WSDLPORT, WSENDPOINT, wsscVer, wsTrustVer
-
Constructor Summary
ConstructorDescriptionWSITClientAuthContext
(String operation, Subject subject, Map<Object, Object> map, CallbackHandler callbackHandler) Creates a new instance of WSITClientAuthContext -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addIncomingFaultPolicy
(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) protected SecurityPolicyHolder
addIncomingMP
(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) protected void
addIncomingProtocolPolicy
(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected void
addOutgoingFaultPolicy
(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) protected SecurityPolicyHolder
addOutgoingMP
(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) protected void
addOutgoingProtocolPolicy
(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) void
cleanSubject
(javax.security.auth.message.MessageInfo messageInfo, Subject subject) protected String
getAction
(WSDLOperation operation, boolean inComming) protected List<PolicyAssertion>
getIssuedTokenPolicies
(Packet packet, String scope) protected void
populateKerberosContext
(Packet packet, ProcessingContextImpl ctx, boolean isSCMessage) protected Message
secureOutboundMessage
(Message message, ProcessingContext ctx) protected javax.xml.soap.SOAPMessage
secureOutboundMessage
(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) secureRequest
(Packet packet, Subject clientSubject, boolean isSCMessage) javax.security.auth.message.AuthStatus
secureRequest
(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject) validateResponse
(Packet req, Subject clientSubject, Subject serviceSubject) javax.security.auth.message.AuthStatus
validateResponse
(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) protected Message
verifyInboundMessage
(Message message, ProcessingContext ctx) protected javax.xml.soap.SOAPMessage
verifyInboundMessage
(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) Methods inherited from class com.sun.xml.wss.provider.wsit.WSITAuthContextBase
bindingHasIssuedTokenPolicy, bindingHasRMPolicy, bindingHasSecureConversationPolicy, buildProtocolPolicy, cachedOperation, cacheMessage, cacheOperation, cacheOperation, collectPolicies, constructPolicyHolder, constructPolicyHolder, generateInternalError, getAction, getAlgoSuite, getBindingAlgorithmSuite, getEffectiveBootstrapPolicy, getInBoundSCP, getIssuedTokenPoliciesFromBootstrapPolicy, getKerberosTokenPoliciesFromBootstrapPolicy, getOperation, getOperationKey, getOutBoundKTP, getOutBoundSCP, getOutgoingXWSBootstrapPolicy, getOutgoingXWSSecurityPolicy, getRequestPacket, getResponsePacket, getSecureConversationPolicies, getSOAPFault, getSOAPFaultException, getSOAPFaultException, getTokens, getWSDLOpFromAction, getWssAssertion, hasKerberosTokenPolicy, initializeInboundProcessingContext, initializeOutgoingProcessingContext, isAddressingEnabled, isMakeConnectionMessage, isRMMessage, isSCCancel, isSCMessage, isSCRenew, isTrustMessage, loadClass, loadGFHandler, populateConfigProperties, resetCachedOperation, resolveAlternative, setRequestPacket, setResponsePacket, unmarshalPolicy
-
Field Details
-
authConfig
-
tubeOrPipeHashCode
protected int tubeOrPipeHashCode
-
-
Constructor Details
-
Method Details
-
secureRequest
public javax.security.auth.message.AuthStatus secureRequest(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject) throws javax.security.auth.message.AuthException - Specified by:
secureRequest
in interfacejavax.security.auth.message.ClientAuth
- Throws:
javax.security.auth.message.AuthException
-
secureRequest
public Packet secureRequest(Packet packet, Subject clientSubject, boolean isSCMessage) throws XWSSecurityException - Throws:
XWSSecurityException
-
validateResponse
public javax.security.auth.message.AuthStatus validateResponse(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws javax.security.auth.message.AuthException - Specified by:
validateResponse
in interfacejavax.security.auth.message.ClientAuth
- Throws:
javax.security.auth.message.AuthException
-
cleanSubject
public void cleanSubject(javax.security.auth.message.MessageInfo messageInfo, Subject subject) throws javax.security.auth.message.AuthException - Specified by:
cleanSubject
in interfacejavax.security.auth.message.ClientAuth
- Throws:
javax.security.auth.message.AuthException
-
validateResponse
public Packet validateResponse(Packet req, Subject clientSubject, Subject serviceSubject) throws XWSSecurityException - Throws:
XWSSecurityException
-
secureOutboundMessage
protected javax.xml.soap.SOAPMessage secureOutboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) - Overrides:
secureOutboundMessage
in classWSITAuthContextBase
-
secureOutboundMessage
- Overrides:
secureOutboundMessage
in classWSITAuthContextBase
-
verifyInboundMessage
protected javax.xml.soap.SOAPMessage verifyInboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) throws WssSoapFaultException, XWSSecurityException -
verifyInboundMessage
protected Message verifyInboundMessage(Message message, ProcessingContext ctx) throws XWSSecurityException - Throws:
XWSSecurityException
-
addOutgoingMP
protected SecurityPolicyHolder addOutgoingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) throws PolicyException - Specified by:
addOutgoingMP
in classWSITAuthContextBase
- Throws:
PolicyException
-
addIncomingMP
protected SecurityPolicyHolder addIncomingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) throws PolicyException - Specified by:
addIncomingMP
in classWSITAuthContextBase
- Throws:
PolicyException
-
addIncomingProtocolPolicy
protected void addIncomingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) throws PolicyException - Specified by:
addIncomingProtocolPolicy
in classWSITAuthContextBase
- Throws:
PolicyException
-
addOutgoingProtocolPolicy
protected void addOutgoingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) throws PolicyException - Specified by:
addOutgoingProtocolPolicy
in classWSITAuthContextBase
- Throws:
PolicyException
-
addIncomingFaultPolicy
protected void addIncomingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) throws PolicyException - Specified by:
addIncomingFaultPolicy
in classWSITAuthContextBase
- Throws:
PolicyException
-
addOutgoingFaultPolicy
protected void addOutgoingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) throws PolicyException - Specified by:
addOutgoingFaultPolicy
in classWSITAuthContextBase
- Throws:
PolicyException
-
getAction
- Specified by:
getAction
in classWSITAuthContextBase
-
getIssuedTokenPolicies
-
populateKerberosContext
protected void populateKerberosContext(Packet packet, ProcessingContextImpl ctx, boolean isSCMessage) throws XWSSecurityException - Throws:
XWSSecurityException
-