Class HerodotusGrantedAuthority

java.lang.Object
cn.herodotus.engine.oauth2.core.definition.domain.HerodotusGrantedAuthority
All Implemented Interfaces:
Serializable, org.springframework.security.core.GrantedAuthority

public class HerodotusGrantedAuthority extends Object implements org.springframework.security.core.GrantedAuthority

Description: 自定义 GrantedAuthority

Author:
: gengwei.zheng
See Also:
Date:
: 2022/3/5 0:12
  • Constructor Details

    • HerodotusGrantedAuthority

      public HerodotusGrantedAuthority()
    • HerodotusGrantedAuthority

      public HerodotusGrantedAuthority(String authority)
  • Method Details

    • getAuthority

      public String getAuthority()
      Specified by:
      getAuthority in interface org.springframework.security.core.GrantedAuthority
    • setAuthority

      public void setAuthority(String authority)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object