Skip to content

Instantly share code, notes, and snippets.

@dragonfly95
Last active May 1, 2017 12:17
Show Gist options
  • Save dragonfly95/dd129597c9b52c9be54dd926bb8657a4 to your computer and use it in GitHub Desktop.
Save dragonfly95/dd129597c9b52c9be54dd926bb8657a4 to your computer and use it in GitHub Desktop.
tip for ruby
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.onnuri.domain.UserMaster;
import org.springframework.security.core.GrantedAuthority;
import java.util.Collection;
@Slf4j
@Getter
public class LoginUserDetails extends org.springframework.security.core.userdetails.User {
private static final long serialVersionUID = 9151817201389034356L;
private UserMaster userMaster;
public LoginUserDetails(UserMaster user) {
super(user.getUserName(), user.getPassword(), user.getAuthorities());
this.userMaster = user;
log.debug("public LoginUserDetails(UserMaster user) {}", user);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment