
org.crazyyak.lib.security.providers.ProviderUtils Maven / Gradle / Ivy
package org.crazyyak.lib.security.providers;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
public class ProviderUtils {
private ProviderUtils() {
}
public static boolean isGoogleAuthentication(UsernamePasswordAuthenticationToken authentication) {
Object principal = authentication.getPrincipal();
return principal != null && principal.equals("google-authentication");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy