| Modifier and Type | Class and Description |
|---|---|
| private static class | WindowsAuthProviderImpl.ContinueContext
The Class ContinueContext. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CONTINUE_CONTEXT_TIMEOUT
The Continue Context Timeout. |
| private final Cache | continueContexts
The continue contexts. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | WindowsAuthProviderImpl(final int
Timeout for security contexts in seconds. continueContextsTimeout)A Windows authentication provider. |
| Modifier and Type | Method and Description |
|---|---|
| public IWindowsSecurityContext | acceptSecurityToken(final String
A unique connection id. connectionId, final byte[] The security token generated by the client wishing to logon. token, final String The name of the security package to use. Can be any security package supported by both the client and
the server. This is usually set to "Negotiate" which will use SPNEGO to determine which security
package to use. Other common values are "Kerberos" and "NTLM". securityPackage)Implements waffle. |
| public int | Returns: Number of elements in the hash map.Number of elements in the continue contexts map. |
| public IWindowsComputer | getCurrentComputer()
Implements waffle. |
| public IWindowsDomain[] | getDomains()
Implements waffle. |
| public IWindowsIdentity | logonDomainUser(final String
A string that specifies the name of the user. This is the name of the user account to log on to. If
you use the user principal name (UPN) format, user@DNS_domain_name, the domain parameter must be NULL. username, final String A string that specifies the name of the domain or server whose account database contains the username
account. If this parameter is NULL, the user name must be specified in UPN format. If this parameter
is ".", the function validates the account by using only the local account database. domain, final String A string that specifies the plaintext password for the user account specified by username. password)Implements waffle. |
| public IWindowsIdentity | logonDomainUserEx(final String
A string that specifies the name of the user. This is the name of the user account to log on to. If
you use the user principal name (UPN) format, user@DNS_domain_name, the domain parameter must be NULL. username, final String A string that specifies the name of the domain or server whose account database contains the username
account. If this parameter is NULL, the user name must be specified in UPN format. If this parameter
is ".", the function validates the account by using only the local account database. domain, final String A string that specifies the plaintext password for the user account specified by username. password, final int The type of logon operation to perform. logonType, final int Specifies the logon provider. logonProvider)Implements waffle. |
| public IWindowsIdentity | logonUser(final String
A string that specifies the name of the user in the UPN format. username, final String A string that specifies the plaintext password for the user account specified by username. password)Implements waffle. |
| public IWindowsAccount | lookupAccount(final String
Fully qualified or partial username. username)Implements waffle. |
| public void | resetSecurityToken(final String
Connection id. connectionId)Implements waffle. |
| CONTINUE_CONTEXT_TIMEOUT | back to summary |
|---|---|
| public static final int CONTINUE_CONTEXT_TIMEOUT The Continue Context Timeout. | |
| continueContexts | back to summary |
|---|---|
| private final Cache<String, WindowsAuthProviderImpl. The continue contexts. | |
| WindowsAuthProviderImpl | back to summary |
|---|---|
| public WindowsAuthProviderImpl() Instantiates a new windows auth provider impl. | |
| WindowsAuthProviderImpl | back to summary |
|---|---|
| public WindowsAuthProviderImpl(final int continueContextsTimeout) A Windows authentication provider.
| |
| acceptSecurityToken | back to summary |
|---|---|
| public IWindowsSecurityContext acceptSecurityToken(final String connectionId, final byte[] token, final String securityPackage) Implements waffle. Doc from waffle. Attempts to validate the user using an SSPI token. This token is generated by the client via the InitializeSecurityContext(package) method described in https://msdn.microsoft.com/en-us/library/aa375509(VS.85).aspx
| |
| getContinueContextsSize | back to summary |
|---|---|
| public int getContinueContextsSize() Number of elements in the continue contexts map.
| |
| getCurrentComputer | back to summary |
|---|---|
| public IWindowsComputer getCurrentComputer() Implements waffle. Doc from waffle. Retrieve the current computer information.
| |
| getDomains | back to summary |
|---|---|
| public IWindowsDomain[] getDomains() Implements waffle. Doc from waffle. Retrieve a list of domains (Active Directory) on the local server.
| |
| logonDomainUser | back to summary |
|---|---|
| public IWindowsIdentity logonDomainUser(final String username, final String domain, final String password) Implements waffle. Doc from waffle. The LogonDomainUser function attempts to log a user on to the local computer using a network logon type and the default authentication provider.
| |
| logonDomainUserEx | back to summary |
|---|---|
| public IWindowsIdentity logonDomainUserEx(final String username, final String domain, final String password, final int logonType, final int logonProvider) Implements waffle. Doc from waffle. The LogonDomainUserEx function attempts to log a user on to the local computer. The local computer is the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer. You specify the user with a user name and domain and authenticate the user with a plaintext password.
| |
| logonUser | back to summary |
|---|---|
| public IWindowsIdentity logonUser(final String username, final String password) Implements waffle. Doc from waffle. The LogonUser function attempts to log a user on to the local computer using a network logon type and the default authentication provider.
| |
| lookupAccount | back to summary |
|---|---|
| public IWindowsAccount lookupAccount(final String username) Implements waffle. Doc from waffle. Retrieve a security identifier (SID) for the account and the name of the domain or local computer on which the account was found.
| |
| resetSecurityToken | back to summary |
|---|---|
| public void resetSecurityToken(final String connectionId) Implements waffle. Doc from waffle. Reset a previously saved continuation security token for a given connection id. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Sspi. | continueHandle
The continue handle. |
| pack-priv IWindowsCredentialsHandle | serverCredential
The server credential. |
| Access | Constructor and Description |
|---|---|
| public | ContinueContext(final Sspi.
the handle handle,the windows credential windowsCredential)Instantiates a new continue context. |
| continueHandle | back to summary |
|---|---|
| pack-priv Sspi. The continue handle. | |
| serverCredential | back to summary |
|---|---|
| pack-priv IWindowsCredentialsHandle serverCredential The server credential. | |
| ContinueContext | back to summary |
|---|---|
| public ContinueContext(final Sspi. Instantiates a new continue context.
| |