First page Back Continue Last page Summary Graphics
Commit example
public boolean commit() throws LoginException {
try{
if (exception==null){
//commit the attributes since we were successful
subject.getPrincipals.add(principal);
}
else{//clean up
principal=null;
}
}
catch(Exception e){
throw new LoginException("An error occured while commiting principal");
}
//everything worked out
return true;
}
Notes: