Class GrantedAuthorityDefaults

java.lang.Object
org.springframework.security.config.core.GrantedAuthorityDefaults

public final class GrantedAuthorityDefaults extends Object
Allows providing defaults for GrantedAuthority
Since:
4.2.0
  • Constructor Details

    • GrantedAuthorityDefaults

      public GrantedAuthorityDefaults(String rolePrefix)
  • Method Details

    • getRolePrefix

      public String getRolePrefix()
      The default prefix used with role based authorization. Default is "ROLE_".
      Returns:
      the default role prefix