First page Back Continue Last page Summary Graphics
Logout example
/**
* Remove the principals that are associated with the subject
*/
public boolean logout() throws LoginException {
try{
subject.getPrincipals().remove(principal);
principal=null;
}
catch(Exception e){
throw new LoginException("Unable to log user off");
}
return true;
}
Notes: