// AssertedPrincipalInfo ap = new AssertedPrincipalInfo(mappedPrincipals[0].getName(), pAssrtValues, id, true);
AssertedCredentials creds =
new AssertedCredentials(realmName,
mappedPrincipals[0].getName(), null);
LoginContextDriver.login(creds);
if(!rp.validateAndCacheNonce(new StringNonce(request.getCallId()))){
throw new SecurityException("Identity Authentication failed");
}
SecurityContext secCtx = SecurityContext.getCurrent();
return new WebPrincipal(creds.getUserName(), null, secCtx);
} catch (LoginException le) {