All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rocketbase.commons.security.EmptyCustomAuthoritiesProvider Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
package io.rocketbase.commons.security;

import io.rocketbase.commons.model.AppUser;
import org.springframework.security.core.GrantedAuthority;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.Collections;

/**
 * default implementation of {@link CustomAuthoritiesProvider}
 */
public class EmptyCustomAuthoritiesProvider implements CustomAuthoritiesProvider {

    @Override
    public Collection getExtraTokenAuthorities(String username) {
        return Collections.emptyList();
    }

    @Override
    public Collection getExtraSecurityContextAuthorities(AppUser user, HttpServletRequest request) {
        return Collections.emptyList();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy