Package waffle.apache

Class GenericWindowsPrincipal

java.lang.Object
org.apache.catalina.realm.GenericPrincipal
waffle.apache.GenericWindowsPrincipal
All Implemented Interfaces:
Serializable, Principal, org.apache.catalina.TomcatPrincipal

public class GenericWindowsPrincipal extends org.apache.catalina.realm.GenericPrincipal
A Windows Principal.
See Also:
  • Constructor Details

    • GenericWindowsPrincipal

      public GenericWindowsPrincipal(IWindowsIdentity windowsIdentity, PrincipalFormat principalFormat, PrincipalFormat roleFormat)
      A windows principal.
      Parameters:
      windowsIdentity - Windows identity.
      principalFormat - Principal format.
      roleFormat - Role format.
  • Method Details

    • getSid

      public byte[] getSid()
      Byte representation of the SID.
      Returns:
      Array of bytes.
    • getSidString

      public String getSidString()
      String representation of the SID.
      Returns:
      String.
    • getGroups

      public Map<String,WindowsAccount> getGroups()
      Windows groups that the user is a member of.
      Returns:
      A map of group names to groups.
    • getRolesString

      public String getRolesString()
      Get an array of roles as a string.
      Returns:
      Role1, Role2, ...