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.AppUserToken;
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(AppUserToken user) {
        return Collections.emptyList();
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy