Package waffle.windows.auth
Interface IWindowsIdentity
-
- All Known Implementing Classes:
WindowsIdentityImpl
public interface IWindowsIdentityA Windows Identity.- Author:
- dblock[at]dblock[dot]org
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Dispose of the Windows identity.StringgetFqn()Fully qualified name.IWindowsAccount[]getGroups()Group memberships.byte[]getSid()Sid.StringgetSidString()Sid.IWindowsImpersonationContextimpersonate()Impersonate a logged on user.booleanisGuest()Returns true if the identity represents a Guest account.
-
-
-
Method Detail
-
getSidString
String getSidString()
Sid.- Returns:
- String.
-
getSid
byte[] getSid()
Sid.- Returns:
- Array of bytes.
-
getFqn
String getFqn()
Fully qualified name.- Returns:
- String.
-
getGroups
IWindowsAccount[] getGroups()
Group memberships.- Returns:
- Array of accounts.
-
impersonate
IWindowsImpersonationContext impersonate()
Impersonate a logged on user.- Returns:
- An impersonation context.
-
dispose
void dispose()
Dispose of the Windows identity.
-
isGuest
boolean isGuest()
Returns true if the identity represents a Guest account.- Returns:
- True if the identity represents a Guest account, false otherwise.
-
-