/** * Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this * Account. * * @param principals all the principals, aka the identifying attributes, of this Account. * @see Account#getPrincipals() */ public void setPrincipals(PrincipalCollection principals) { this.authcInfo.setPrincipals(principals); }
/** * Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this * Account. * * @param principals all the principals, aka the identifying attributes, of this Account. * @see Account#getPrincipals() */ public void setPrincipals(PrincipalCollection principals) { this.authcInfo.setPrincipals(principals); }
aggregate.setPrincipals(principalCollection); SimpleAuthenticationInfo local = new SimpleAuthenticationInfo("username", "password", "testRealm"); aggregate.merge(local);
/** * Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this * Account. * * @param principals all the principals, aka the identifying attributes, of this Account. * @see Account#getPrincipals() */ public void setPrincipals(PrincipalCollection principals) { this.authcInfo.setPrincipals(principals); }
info.setPrincipals(principals); info.setCredentials(password);
info.setPrincipals(principals); info.setCredentials(password);
authcInfo.setPrincipals(principals); return authcInfo;