com.mycompany.springrest.web.controller.GrantedAuthorityImpl.java Source code

Java tutorial

Introduction

Here is the source code for com.mycompany.springrest.web.controller.GrantedAuthorityImpl.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.springrest.web.controller;

import org.springframework.security.core.GrantedAuthority;

/**
 *
 * @author ??
 */
class GrantedAuthorityImpl implements GrantedAuthority {

    private String role;

    public GrantedAuthorityImpl(String role_user) {
        this.role = role_user;
    }

    @Override
    public String getAuthority() {
        return role;
    }

}