Class Authority

  • All Implemented Interfaces:
    Serializable, org.springframework.security.core.GrantedAuthority

    @Entity
    public class Authority
    extends GenericEntity
    implements org.springframework.security.core.GrantedAuthority
    See Also:
    Serialized Form
    • Constructor Detail

      • Authority

        public Authority()
    • Method Detail

      • getSubject

        public Subject getSubject()
        Returns:
        the subject
      • setSubject

        public void setSubject​(Subject subject)
        Parameters:
        subject - the subject to set
      • getAuthority

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

        public void setAuthority​(String authority)
        Parameters:
        authority - the authority to set
      • setAuthority

        public void setAuthority​(Authority.Type authority)