waffle.servlet.WindowsPrincipal.getRoles()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(212)

本文整理了Java中waffle.servlet.WindowsPrincipal.getRoles()方法的一些代码示例,展示了WindowsPrincipal.getRoles()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowsPrincipal.getRoles()方法的具体详情如下:
包路径:waffle.servlet.WindowsPrincipal
类名称:WindowsPrincipal
方法名:getRoles

WindowsPrincipal.getRoles介绍

[英]Gets the roles.
[中]获取角色。

代码示例

代码示例来源:origin: Waffle/waffle

  1. /**
  2. * A windows principal.
  3. *
  4. * @param windowsIdentity
  5. * Windows identity.
  6. * @param principalFormat
  7. * Principal format.
  8. * @param roleFormat
  9. * Role format.
  10. */
  11. public WindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
  12. final PrincipalFormat roleFormat) {
  13. this.identity = windowsIdentity;
  14. this.fqn = windowsIdentity.getFqn();
  15. this.sid = windowsIdentity.getSid();
  16. this.sidString = windowsIdentity.getSidString();
  17. this.groups = WindowsPrincipal.getGroups(windowsIdentity.getGroups());
  18. this.roles = WindowsPrincipal.getRoles(windowsIdentity, principalFormat, roleFormat);
  19. }

代码示例来源:origin: com.github.waffle/waffle-jna

  1. /**
  2. * A windows principal.
  3. *
  4. * @param windowsIdentity
  5. * Windows identity.
  6. * @param principalFormat
  7. * Principal format.
  8. * @param roleFormat
  9. * Role format.
  10. */
  11. public WindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
  12. final PrincipalFormat roleFormat) {
  13. this.identity = windowsIdentity;
  14. this.fqn = windowsIdentity.getFqn();
  15. this.sid = windowsIdentity.getSid();
  16. this.sidString = windowsIdentity.getSidString();
  17. this.groups = WindowsPrincipal.getGroups(windowsIdentity.getGroups());
  18. this.roles = WindowsPrincipal.getRoles(windowsIdentity, principalFormat, roleFormat);
  19. }

代码示例来源:origin: com.github.dblock.waffle/waffle-jna

  1. /**
  2. * A windows principal.
  3. *
  4. * @param windowsIdentity
  5. * Windows identity.
  6. * @param principalFormat
  7. * Principal format.
  8. * @param roleFormat
  9. * Role format.
  10. */
  11. public WindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
  12. final PrincipalFormat roleFormat) {
  13. this.identity = windowsIdentity;
  14. this.fqn = windowsIdentity.getFqn();
  15. this.sid = windowsIdentity.getSid();
  16. this.sidString = windowsIdentity.getSidString();
  17. this.groups = WindowsPrincipal.getGroups(windowsIdentity.getGroups());
  18. this.roles = WindowsPrincipal.getRoles(windowsIdentity, principalFormat, roleFormat);
  19. }

相关文章