final List<QName> elementPath = getElementPath(eventQueue);
final List<XMLSecEvent> xmlSecEvents = getResponsibleXMLSecEvents(eventQueue, index);
final TokenContext tokenContext = new TokenContext(wssSecurityProperties, wsInboundSecurityContext, xmlSecEvents, elementPath);
BinarySecurityTokenValidator binarySecurityTokenValidator =
wssSecurityProperties.getValidator(WSSConstants.TAG_wsse_BinarySecurityToken);
if (binarySecurityTokenValidator == null) {
binarySecurityTokenValidator = new BinarySecurityTokenValidatorImpl();
}
final InboundSecurityToken binarySecurityToken =
binarySecurityTokenValidator.validate(binarySecurityTokenType, tokenContext);
SecurityTokenProvider<InboundSecurityToken> securityTokenProvider = new SecurityTokenProvider<InboundSecurityToken>() {
@Override
public InboundSecurityToken getSecurityToken() throws XMLSecurityException {
return binarySecurityToken;