本文整理了Java中waffle.servlet.WindowsPrincipal.getRoles()
方法的一些代码示例,展示了WindowsPrincipal.getRoles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowsPrincipal.getRoles()
方法的具体详情如下:
包路径:waffle.servlet.WindowsPrincipal
类名称:WindowsPrincipal
方法名:getRoles
[英]Gets the roles.
[中]获取角色。
代码示例来源:origin: Waffle/waffle
/**
* A windows principal.
*
* @param windowsIdentity
* Windows identity.
* @param principalFormat
* Principal format.
* @param roleFormat
* Role format.
*/
public WindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
final PrincipalFormat roleFormat) {
this.identity = windowsIdentity;
this.fqn = windowsIdentity.getFqn();
this.sid = windowsIdentity.getSid();
this.sidString = windowsIdentity.getSidString();
this.groups = WindowsPrincipal.getGroups(windowsIdentity.getGroups());
this.roles = WindowsPrincipal.getRoles(windowsIdentity, principalFormat, roleFormat);
}
代码示例来源:origin: com.github.waffle/waffle-jna
/**
* A windows principal.
*
* @param windowsIdentity
* Windows identity.
* @param principalFormat
* Principal format.
* @param roleFormat
* Role format.
*/
public WindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
final PrincipalFormat roleFormat) {
this.identity = windowsIdentity;
this.fqn = windowsIdentity.getFqn();
this.sid = windowsIdentity.getSid();
this.sidString = windowsIdentity.getSidString();
this.groups = WindowsPrincipal.getGroups(windowsIdentity.getGroups());
this.roles = WindowsPrincipal.getRoles(windowsIdentity, principalFormat, roleFormat);
}
代码示例来源:origin: com.github.dblock.waffle/waffle-jna
/**
* A windows principal.
*
* @param windowsIdentity
* Windows identity.
* @param principalFormat
* Principal format.
* @param roleFormat
* Role format.
*/
public WindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
final PrincipalFormat roleFormat) {
this.identity = windowsIdentity;
this.fqn = windowsIdentity.getFqn();
this.sid = windowsIdentity.getSid();
this.sidString = windowsIdentity.getSidString();
this.groups = WindowsPrincipal.getGroups(windowsIdentity.getGroups());
this.roles = WindowsPrincipal.getRoles(windowsIdentity, principalFormat, roleFormat);
}
内容来源于网络,如有侵权,请联系作者删除!