INNER CODE UNIT · Java

Pac4jRememberMeAuthenticationToken

pac4j/spring-security-pac4j · src/main/java/org/pac4j/springframework/security/authentication/Pac4jRememberMeAuthenticationToken.java:19

public class Pac4jRememberMeAuthenticationToken extends RememberMeAuthenticationToken implements Pac4jAuthentication {

    private final List<UserProfile> profiles;

    public Pac4jRememberMeAuthenticationToken(final List<UserProfile> profiles) {
        super("rme", ProfileHelper.flatIntoOneProfile(profiles).get(), SpringSecurityHelper.buildAuthorities(profiles));
        this.profiles = profiles;
        setAuthenticated(true);
    }

    @Override
    public String getName() {
        return ((CommonProfile) getPrincipal()).getId();
    }

    @Override
    public List<UserProfile> getProfiles() {
        return this.profiles;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…