Class GrantedAuthorityDefaults


  • public final class GrantedAuthorityDefaults
    extends java.lang.Object
    Allows providing defaults for GrantedAuthority
    Since:
    4.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRolePrefix()
      The default prefix used with role based authorization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrantedAuthorityDefaults

        public GrantedAuthorityDefaults​(java.lang.String rolePrefix)
    • Method Detail

      • getRolePrefix

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