Interface CurrentUserProxy

All Known Implementing Classes:
CurrentUserProxyImpl

@Deprecated public interface CurrentUserProxy
Deprecated.
use the CurrentSecurityPrincipalProxy instead
Provides access to the authenticated user attached to the request or current thread. Requires the authenticated principal to be of type User, calls to isAuthenticated() should return false if that is not the case.

Unless you are only interested in User authentications, favour the more generic CurrentSecurityPrincipalProxy instead.

See Also:
  • CurrentSecurityPrincipalProxy
  • Method Details

    • getId

      Long getId()
      Deprecated.
    • getEmail

      String getEmail()
      Deprecated.
    • getUsername

      String getUsername()
      Deprecated.
    • isMemberOf

      boolean isMemberOf(Group group)
      Deprecated.
    • hasRole

      boolean hasRole(String name)
      Deprecated.
    • hasRole

      boolean hasRole(Role role)
      Deprecated.
    • hasPermission

      boolean hasPermission(String name)
      Deprecated.
    • hasPermission

      boolean hasPermission(Permission permission)
      Deprecated.
    • hasAuthority

      boolean hasAuthority(String authority)
      Deprecated.
    • hasAuthority

      boolean hasAuthority(org.springframework.security.core.GrantedAuthority authority)
      Deprecated.
    • getUser

      User getUser()
      Deprecated.
    • isAuthenticated

      boolean isAuthenticated()
      Deprecated.