void setTokenValueType(AuthenticationTokenPolicy.UsernameTokenBinding utb, PolicyAssertion tokenAssertion) {
NestedPolicy policy = tokenAssertion.getNestedPolicy();
if (policy == null) {
return;
}
AssertionSet as = policy.getAssertionSet();
Iterator<PolicyAssertion> itr = as.iterator();
while (itr.hasNext()) {
PolicyAssertion policyAssertion = (PolicyAssertion) itr.next();
if (policyAssertion.getName().getLocalPart().equals(Constants.WssUsernameToken10) || policyAssertion.getName().getLocalPart().equals(Constants.WssUsernameToken11)) {
utb.setValueType(MessageConstants.USERNAME_TOKEN_NS);
} else if (policyAssertion.getName().getLocalPart().equals(Constants.WssUsernameToken10) || policyAssertion.getName().getLocalPart().equals(Constants.WssUsernameToken11)) {