개요

전체 흐름


Authentication 인터페이스

AuthenticationSpring Security에서 인증 객체를 추상화한 인터페이스를 말한다.

public interface Authentication extends Principal, Serializable {
    Collection<? extends GrantedAuthority> getAuthorities();
    Object getCredentials();
    Object getDetails();
    Object getPrincipal();
    boolean isAuthenticated();
    void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException;
}

즉, 인증 전/후 정보를 모두 담을 수 있는 표준 구조이다.