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

org.crazyyak.lib.security.providers.ProviderUtils Maven / Gradle / Ivy

There is a newer version: 4.1.9
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy