/** * Sets this Account's credentials that verify one or more of the Account's * {@link #getPrincipals() principals}, such as a password or private key. * * @param credentials the credentials associated with this Account that verify one or more of the Account principals. * @see org.apache.shiro.authc.Account#getCredentials() */ public void setCredentials(Object credentials) { this.authcInfo.setCredentials(credentials); }
Set newSet = new HashSet(); newSet.add(thisCredentials); setCredentials(newSet);
/** * Sets this Account's credentials that verify one or more of the Account's * {@link #getPrincipals() principals}, such as a password or private key. * * @param credentials the credentials associated with this Account that verify one or more of the Account principals. * @see org.apache.shiro.authc.Account#getCredentials() */ public void setCredentials(Object credentials) { this.authcInfo.setCredentials(credentials); }
Set newSet = new HashSet(); newSet.add(thisCredentials); setCredentials(newSet);
/** * Sets this Account's credentials that verify one or more of the Account's * {@link #getPrincipals() principals}, such as a password or private key. * * @param credentials the credentials associated with this Account that verify one or more of the Account principals. * @see org.apache.shiro.authc.Account#getCredentials() */ public void setCredentials(Object credentials) { this.authcInfo.setCredentials(credentials); }
info.setCredentials(password);
Set newSet = new HashSet(); newSet.add(thisCredentials); setCredentials(newSet);
SimplePrincipalCollection principals = new SimplePrincipalCollection( apiAuthenticationInfo.getIdentityPrincipal(), this.getName()); authcInfo.setCredentials(token.getCredentials());