This library publishes several Windows authentication, authorization and membership interfaces.
Reference Waffle.Windows.AuthProvider.dll
. Create a new instance of Waffle.Windows.AuthProvider.WindowsAuthProviderImpl
.
WindowsAuthProviderImpl waffle = new WindowsAuthProviderImpl();
IWindowsAccount admin = waffle.LookupAccount("Administrator");
Console.WriteLine(admin.SidString);
Console.WriteLine(admin.Fqn);
Register the authentication provider DLL as follows.
regasm.exe /codebase /tlb:Waffle.Windows.AuthProvider.tlb Waffle.Windows.AuthProvider.dll
Create a new instance of Waffle.Windows.AuthProvider.WindowsAuthProviderImpl
.
set windowsAuthProviderImpl = CreateObject("Waffle.Windows.AuthProvider")
Add waffle-jna.jar
, caffeine
, jna.jar
, jna-platform.jar
, and slf4j-api.jar
to your CLASSPATH
or, if you use Maven, add the following to your pom.xml
.
- Use specific versions as bundled in waffle-distro
<properties>
<waffle.version>3.1.0</waffle.version>
</properties>
<dependency>
<groupId>com.github.waffle</groupId>
<artifactId>waffle-jna</artifactId>
<version>${waffle.version}</version>
</dependency>
Create a new instance of waffle.windows.auth.impl.WindowsAuthProviderImpl
.