idp.setIgnoreIncomingSignatures(true);
idp.setStrictPostBinding(false);
idp.start();
// Assume that we already have the principal and roles set in the session
MockCatalinaRealm realm = new MockCatalinaRealm("anil", "test", new Principal() {
public String getName() {
return "anil";
}
});
List<String> roles = new ArrayList<String>();