public class JcifsSpnegoAuthenticationHandler extends AbstractPreAndPostProcessingAuthenticationHandler
logger, principalFactory, servicesManager
SUCCESSFUL_AUTHENTICATION_HANDLERS
Constructor and Description |
---|
JcifsSpnegoAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
protected HandlerResult |
doAuthentication(Credential credential)
Performs the details of authentication and returns an authentication handler result on success.
|
protected Principal |
getPrincipal(java.lang.String name,
boolean isNtlm)
Gets the principal from the given name.
|
void |
setAuthentication(jcifs.spnego.Authentication authentication) |
void |
setNTLMallowed(boolean isNTLMallowed) |
void |
setPrincipalWithDomainName(boolean principalWithDomainName) |
boolean |
supports(Credential credential)
Determines whether the handler has the capability to authenticate the given credential.
|
authenticate, createHandlerResult, postAuthenticate, preAuthenticate
getName, setName, setPrincipalFactory, setServicesManager
protected HandlerResult doAuthentication(Credential credential) throws java.security.GeneralSecurityException, PreventedException
AbstractPreAndPostProcessingAuthenticationHandler
doAuthentication
in class AbstractPreAndPostProcessingAuthenticationHandler
credential
- Credential to authenticate.java.security.GeneralSecurityException
- On authentication failure that is thrown out to the caller of
AbstractPreAndPostProcessingAuthenticationHandler.authenticate(Credential)
.PreventedException
- On the indeterminate case when authentication is prevented.public boolean supports(Credential credential)
AuthenticationHandler
AuthenticationHandler.authenticate(Credential)
method MUST be capable of processing a given credential if
supports
returns true on the same credential.credential
- The credential to check.public void setAuthentication(jcifs.spnego.Authentication authentication)
public void setPrincipalWithDomainName(boolean principalWithDomainName)
public void setNTLMallowed(boolean isNTLMallowed)
protected Principal getPrincipal(java.lang.String name, boolean isNtlm)
name
- the nameisNtlm
- the is ntlm