Interface NormalizedAuthentication

All Superinterfaces:
org.springframework.security.core.Authentication, Principal, Serializable
All Known Subinterfaces:
LdaptiveAuthentication
All Known Implementing Classes:
LdaptiveAuthenticationToken, LdaptiveRememberMeAuthenticationToken, NormalizedJwtAuthenticationToken, NormalizedUsernamePasswordAuthenticationToken

public interface NormalizedAuthentication extends org.springframework.security.core.Authentication
The normalized authentication token.
Author:
Christian Bremer
  • Method Details

    • getPrincipal

      NormalizedPrincipal getPrincipal()
      Returns the normalized principal.
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
      Returns:
      the normalized principal
    • getGrantedAuthorityNames

      default @NonNull Set<String> getGrantedAuthorityNames()
      Gets granted authority names.
      Returns:
      the granted authority names
    • getGroups

      default @NonNull Collection<Group> getGroups()
      Gets groups.
      Returns:
      the groups
    • getGroupNames

      default @NonNull Set<String> getGroupNames()
      Gets group names.
      Returns:
      the group names
    • hasGrantedAuthority

      default boolean hasGrantedAuthority(@Nullable String authority)
      Has granted authority.
      Parameters:
      authority - the authority
      Returns:
      the boolean
    • hasAnyGrantedAuthority

      default boolean hasAnyGrantedAuthority(@Nullable Collection<String> authorities)
      Has any granted authority.
      Parameters:
      authorities - the authorities
      Returns:
      the boolean
    • hasAnyGrantedAuthority

      default boolean hasAnyGrantedAuthority(@Nullable String... authorities)
      Has any granted authority.
      Parameters:
      authorities - the authorities
      Returns:
      the boolean
    • isInGroup

      default boolean isInGroup(@Nullable String groupName)
      Is in group.
      Parameters:
      groupName - the group name
      Returns:
      the boolean
    • isInAnyGroup

      default boolean isInAnyGroup(@Nullable Collection<String> groupNames)
      Is in any group.
      Parameters:
      groupNames - the group names
      Returns:
      the boolean
    • isInAnyGroup

      default boolean isInAnyGroup(@Nullable String... groupNames)
      Is in any group.
      Parameters:
      groupNames - the group names
      Returns:
      the boolean