/** * Set the authenticated Principal that is associated with this Session. * This provides an <code>Authenticator</code> with a means to cache a * previously authenticated Principal, and avoid potentially expensive * <code>Realm.authenticate()</code> calls on every request. * * @param principal * The new Principal, or <code>null</code> if none */ @Override public void setPrincipal(Principal principal) { setPrincipal(principal, true); }
/** * Set the authenticated Principal that is associated with this Session. * This provides an <code>Authenticator</code> with a means to cache a * previously authenticated Principal, and avoid potentially expensive * <code>Realm.authenticate()</code> calls on every request. * * @param principal * The new Principal, or <code>null</code> if none */ @Override public void setPrincipal(Principal principal) { setPrincipal(principal, true); }
/** * Set the authenticated Principal that is associated with this Session. * This provides an <code>Authenticator</code> with a means to cache a * previously authenticated Principal, and avoid potentially expensive * <code>Realm.authenticate()</code> calls on every request. * * @param principal * The new Principal, or <code>null</code> if none */ @Override public void setPrincipal(Principal principal) { setPrincipal(principal, true); }
p = sp.getPrincipal(); session.setPrincipal(p,false); break; case TYPE_AUTHTYPE:
p = sp.getPrincipal(); session.setPrincipal(p,false); break;
p = (Principal) info.getValue(); session.setPrincipal(p,false); break; case TYPE_AUTHTYPE: