com.github.panchitoboy.shiro.jwt.repository.UserDefault Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shiro-jwt Show documentation
Show all versions of shiro-jwt Show documentation
Apache shiro JWT library for Rest Services
package com.github.panchitoboy.shiro.jwt.repository;
import java.util.HashSet;
import java.util.Set;
import org.apache.shiro.authc.AuthenticationToken;
public interface UserDefault extends AuthenticationToken {
default Set getRoles() {
Set roles = new HashSet<>();
roles.add("default");
return roles;
}
}