" </wsp:Policy>\n" +
"</sp:SupportingTokens>";
PolicyEnforcer policyEnforcer = buildAndStartPolicyEngine(policyString);
SAMLCallback samlCallback = new SAMLCallback();
samlCallback.setSamlVersion(SAMLVersion.VERSION_20);
samlCallback.setIssuer("CN=transmitter,OU=swssf,C=CH");
SubjectBean subjectBean = new SubjectBean();
samlCallback.setSubject(subjectBean);
SamlAssertionWrapper samlAssertionWrapper = createSamlAssertionWrapper(samlCallback);
SamlTokenSecurityEvent tokenSecurityEvent = new SamlTokenSecurityEvent();
SamlSecurityTokenImpl samlSecurityToken =
new SamlSecurityTokenImpl(
samlAssertionWrapper, getX509Token(WSSecurityTokenConstants.X509V3Token), null, null,
WSSecurityTokenConstants.KeyIdentifier_SecurityTokenDirectReference, null);
samlSecurityToken.addTokenUsage(WSSecurityTokenConstants.TokenUsage_SupportingTokens);
tokenSecurityEvent.setSecurityToken(samlSecurityToken);
policyEnforcer.registerSecurityEvent(tokenSecurityEvent);
samlCallback.setIssuer("xs:anyURI");
samlAssertionWrapper = createSamlAssertionWrapper(samlCallback);
tokenSecurityEvent = new SamlTokenSecurityEvent();
samlSecurityToken =
new SamlSecurityTokenImpl(