public class JAASAuthenticator extends Kerb5Authenticator implements CallbackHandler, SmbRenewableCredentials
Configuration.isDfsConvertToFQDN() for a workaround.| Constructor and Description |
|---|
JAASAuthenticator(CIFSContext tc)
Create an authenticator using the JAAS service jcifs
This will require that a keytab is configured in this service.
|
JAASAuthenticator(CIFSContext tc,
Map<String,?> properties,
String domain,
String username,
String password)
Create an authenticator using the given credentials
This will create a JAAS configuration with the specified properties that is used to obtain a TGT.
|
JAASAuthenticator(CIFSContext tc,
String serviceName)
Create an authenticator using the given JAAS service
This will require that a keytab is configured in this service.
|
JAASAuthenticator(CIFSContext tc,
String domain,
String username,
String password)
Create an authenticator using the given credentials
This will create a JAAS configuration that is used to obtain a TGT.
|
JAASAuthenticator(CIFSContext tc,
String serviceName,
String domain,
String username,
String password)
Create an authenticator using the given JAAS service and the specified credentials
|
| Modifier and Type | Method and Description |
|---|---|
Kerb5Authenticator |
clone() |
Subject |
getSubject()
Get the
Subject object. |
void |
handle(Callback[] callbacks) |
boolean |
isAnonymous() |
boolean |
isGuest() |
CredentialsInternal |
renew()
Renew the credentials
|
cloneInternal, createContext, equals, getLifeTime, getRealm, getService, getUser, getUserDomain, getUserLifeTime, hashCode, setLifeTime, setRealm, setService, setUser, setUserLifeTime, toStringareHashesExternal, getAnsiHash, getName, getPassword, getSigningKey, getSpecifiedUserDomain, getUnicodeHash, getUsername, getUserSessionKey, getUserSessionKey, unwrapcreateContextgetUserDomain, unwrappublic JAASAuthenticator(CIFSContext tc)
tc - public JAASAuthenticator(CIFSContext tc, String serviceName)
tc - context to useserviceName - JAAS configuration namepublic JAASAuthenticator(CIFSContext tc, String serviceName, String domain, String username, String password)
tc - context to useserviceName - JAAS configuration namedomain - username - password - public JAASAuthenticator(CIFSContext tc, String domain, String username, String password)
tc - context to usedomain - username - password - public JAASAuthenticator(CIFSContext tc, Map<String,?> properties, String domain, String username, String password)
tc - context to useproperties - JAAS properties to setdomain - username - password - public boolean isAnonymous()
isAnonymous in interface CredentialsisAnonymous in class Kerb5AuthenticatorKerb5Authenticator.isAnonymous()public boolean isGuest()
isGuest in interface CredentialsisGuest in class NtlmPasswordAuthenticationNtlmPasswordAuthentication.isGuest()public Kerb5Authenticator clone()
clone in interface CredentialsInternalclone in class Kerb5Authenticatorpublic Subject getSubject()
Subject object.getSubject in interface CredentialsInternalgetSubject in class Kerb5AuthenticatorKerb5Authenticator.getSubject()public CredentialsInternal renew()
renew in interface SmbRenewableCredentialsSmbRenewableCredentials.renew()public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlerIOExceptionUnsupportedCallbackExceptionCallbackHandler.handle(javax.security.auth.callback.Callback[])Copyright © 2018. All rights reserved.