Top Description Methods
waffle.windows.auth

public Interface IWindowsSecurityContext

Known Direct Implementers
waffle.windows.auth.impl.WindowsSecurityContextImpl
Imports
com.sun.jna.platform.win32.Sspi, .Sspi.CtxtHandle, .Sspi.SecBufferDesc

A Windows security context.
Author
dblock[at]dblock[dot]org

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Disposes of the context.

public Sspi.CtxtHandle

Returns:

Handle.
getHandle
()

Context handle.

public IWindowsIdentity

Returns:

Windows Identity.
getIdentity
()

Windows Identity.

public String

Returns:

String.
getPrincipalName
()

Principal name.

public String

Returns:

String.
getSecurityPackage
()

Security package name.

public byte[]

Returns:

Array of bytes.
getToken
()

Token.

public IWindowsImpersonationContext

Returns:

A Windows Impersonation Context.
impersonate
()

Impersonate this security context.

public void
initialize(final Sspi.CtxtHandle
Continue context.
continueCtx
,
final Sspi.SecBufferDesc
Continue token.
continueToken
,
final String
The target of the context. The string contents are security-package specific.
targetName
)

Initialize the security context, continuing from a previous one.

public boolean

Returns:

True or false.
isContinue
()

True if protocol requires continuation.

Method Detail

disposeback to summary
public void dispose()

Disposes of the context.

getHandleback to summary
public Sspi.CtxtHandle getHandle()

Context handle.

Returns:Sspi.CtxtHandle

Handle.

getIdentityback to summary
public IWindowsIdentity getIdentity()

Windows Identity.

Returns:IWindowsIdentity

Windows Identity.

getPrincipalNameback to summary
public String getPrincipalName()

Principal name.

Returns:String

String.

getSecurityPackageback to summary
public String getSecurityPackage()

Security package name.

Returns:String

String.

getTokenback to summary
public byte[] getToken()

Token.

Returns:byte[]

Array of bytes.

impersonateback to summary
public IWindowsImpersonationContext impersonate()

Impersonate this security context.

Returns:IWindowsImpersonationContext

A Windows Impersonation Context.

initializeback to summary
public void initialize(final Sspi.CtxtHandle continueCtx, final Sspi.SecBufferDesc continueToken, final String targetName)

Initialize the security context, continuing from a previous one.

Parameters
continueCtx:Sspi.CtxtHandle

Continue context.

continueToken:Sspi.SecBufferDesc

Continue token.

targetName:String

The target of the context. The string contents are security-package specific.

isContinueback to summary
public boolean isContinue()

True if protocol requires continuation.

Returns:boolean

True or false.