本文整理了Java中waffle.servlet.WindowsPrincipal.hasRole()
方法的一些代码示例,展示了WindowsPrincipal.hasRole()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowsPrincipal.hasRole()
方法的具体详情如下:
包路径:waffle.servlet.WindowsPrincipal
类名称:WindowsPrincipal
方法名:hasRole
[英]Checks whether the principal has a given role.
[中]检查主体是否具有给定的角色。
代码示例来源:origin: com.github.dblock.waffle/waffle-jna
/**
* Returns true if the user is in a given role.
*
* @param role
* the role
* @return true, if is user in role
*/
@Override
public boolean isUserInRole(final String role) {
return this.principal.hasRole(role);
}
}
代码示例来源:origin: Waffle/waffle
/**
* Returns true if the user is in a given role.
*
* @param role
* the role
* @return true, if is user in role
*/
@Override
public boolean isUserInRole(final String role) {
return this.principal.hasRole(role);
}
}
代码示例来源:origin: com.github.waffle/waffle-jna
/**
* Returns true if the user is in a given role.
*
* @param role
* the role
* @return true, if is user in role
*/
@Override
public boolean isUserInRole(final String role) {
return this.principal.hasRole(role);
}
}
内容来源于网络,如有侵权,请联系作者删除!