Top Description Fields Constructors Methods
waffle.windows.auth.impl

public Class WindowsCredentialsHandleImpl

extends Object
implements IWindowsCredentialsHandle
Class Inheritance
All Implemented Interfaces
waffle.windows.auth.IWindowsCredentialsHandle
Imports
com.sun.jna.platform.win32.Secur32, .Sspi, .Sspi.CredHandle, .Sspi.TimeStamp, .Win32Exception, .WinError, waffle.windows.auth.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.
Author
dblock[at]dblock[dot]org

Field Summary

Modifier and TypeField and Description
private final int
credentialsType

The credentials type.

private Sspi.CredHandle
handle

The handle.

private final String
principalName

The principal name.

private final String
securityPackage

The security package.

Constructor Summary

AccessConstructor and Description
public
WindowsCredentialsHandleImpl(final String
Principal name.
newPrincipalName
,
final int
Credentials type.
newCredentialsType
,
final String
Security package.
newSecurityPackage
)

A new Windows credentials handle.

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements waffle.windows.auth.IWindowsCredentialsHandle.dispose.

Dispose of the credentials handle.
public static IWindowsCredentialsHandle

Returns:

A windows credentials handle
getCurrent
(final String
Security package, eg. "Negotiate".
securityPackage
)

Returns the current credentials handle.

public Sspi.CredHandle

Returns:

the handle
getHandle
()

Implements waffle.windows.auth.IWindowsCredentialsHandle.getHandle.

Get CredHandle.
public void
initialize()

Implements waffle.windows.auth.IWindowsCredentialsHandle.initialize.

Initialize a new credentials handle.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

credentialsTypeback to summary
private final int credentialsType

The credentials type.

handleback to summary
private Sspi.CredHandle handle

The handle.

principalNameback to summary
private final String principalName

The principal name.

securityPackageback to summary
private final String securityPackage

The security package.

Constructor Detail

WindowsCredentialsHandleImplback to summary
public WindowsCredentialsHandleImpl(final String newPrincipalName, final int newCredentialsType, final String newSecurityPackage)

A new Windows credentials handle.

Parameters
newPrincipalName:String

Principal name.

newCredentialsType:int

Credentials type.

newSecurityPackage:String

Security package.

Method Detail

disposeback to summary
public void dispose()

Implements waffle.windows.auth.IWindowsCredentialsHandle.dispose.

Dispose of the credentials handle.

Annotations
@Override
getCurrentback to summary
public static IWindowsCredentialsHandle getCurrent(final String securityPackage)

Returns the current credentials handle.

Parameters
securityPackage:String

Security package, eg. "Negotiate".

Returns:IWindowsCredentialsHandle

A windows credentials handle

getHandleback to summary
public Sspi.CredHandle getHandle()

Implements waffle.windows.auth.IWindowsCredentialsHandle.getHandle.

Get CredHandle.

Returns:Sspi.CredHandle

the handle

Annotations
@Override
initializeback to summary
public void initialize()

Implements waffle.windows.auth.IWindowsCredentialsHandle.initialize.

Initialize a new credentials handle.

Annotations
@Override