@Override public String toString() { return target.getLogin(); }
public boolean isEnabled() { return target.isActive(); }
public boolean isAccountNonLocked() { return target.isActive(); }
public String getUsername() { return target.getLogin(); }
public String getPassword() { return target.getPassword(); }
public Set<GrantedAuthority> getAuthorities() { Set<GrantedAuthority> authoritySet = new HashSet<GrantedAuthority>(); authoritySet.add(new SpringGrantedAuthorityAdapter(target.getRole())); return authoritySet; }