java.lang.Object
waffle.windows.auth.impl.WindowsCredentialsHandleImpl
- All Implemented Interfaces:
IWindowsCredentialsHandle
Pre-existing credentials of a security principal. This is a handle to a previously authenticated logon data used by a
security principal to establish its own identity, such as a password, or a Kerberos protocol ticket.
-
Constructor Summary
ConstructorsConstructorDescriptionWindowsCredentialsHandleImpl(String newPrincipalName, int newCredentialsType, String newSecurityPackage) A new Windows credentials handle. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose of the credentials handle.static IWindowsCredentialsHandlegetCurrent(String securityPackage) Returns the current credentials handle.com.sun.jna.platform.win32.Sspi.CredHandleGet CredHandle.voidInitialize a new credentials handle.
-
Constructor Details
-
WindowsCredentialsHandleImpl
-
-
Method Details
-
getCurrent
Returns the current credentials handle.- Parameters:
securityPackage- Security package, eg. "Negotiate".- Returns:
- A windows credentials handle
-
initialize
public void initialize()Initialize a new credentials handle.- Specified by:
initializein interfaceIWindowsCredentialsHandle
-
dispose
public void dispose()Dispose of the credentials handle.- Specified by:
disposein interfaceIWindowsCredentialsHandle
-
getHandle
public com.sun.jna.platform.win32.Sspi.CredHandle getHandle()Get CredHandle.- Specified by:
getHandlein interfaceIWindowsCredentialsHandle- Returns:
- the handle
-