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

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

There is a newer version: 5.0.1.DEPRECATED
Show newest version
package org.tiogasolutions.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