IssuedTokenBuilder itb = new IssuedTokenBuilder(context,(IssuedTokenKeyBinding)keyBinding);
BuilderResult itbResult = itb.process();
return itbResult;
} else if (PolicyTypeUtil.secureConversationTokenKeyBinding(keyBinding)) {
((NamespaceContextEx)context.getNamespaceContext()).addSCNS();
SCTBuilder sctBuilder = new SCTBuilder(context,(SecureConversationTokenKeyBinding)keyBinding);
BuilderResult sctResult = sctBuilder.process();
return sctResult;
} else if (PolicyTypeUtil.samlTokenPolicy(keyBinding)) {
((NamespaceContextEx)context.getNamespaceContext()).addSAMLNS();
SamlTokenBuilder stb = new SamlTokenBuilder(context,(AuthenticationTokenPolicy.SAMLAssertionBinding)keyBinding,true);
return stb.process();
} else if (PolicyTypeUtil.keyValueTokenBinding(keyBinding)) {
((NamespaceContextEx)context.getNamespaceContext()).addSAMLNS();
KeyValueTokenBuilder sctBuilder = new KeyValueTokenBuilder(context,(AuthenticationTokenPolicy.KeyValueTokenBinding)keyBinding);
BuilderResult kvtResult = sctBuilder.process();
return kvtResult;
} else{
logger.log(Level.SEVERE, LogStringsMessages.WSS_1703_UNSUPPORTED_KEYBINDING_SIGNATUREPOLICY(keyBinding));
throw new UnsupportedOperationException("Unsupported Key Binding"+keyBinding);