public class JAASAuthenticator extends Kerb5Authenticator implements CallbackHandler, SmbRenewableCredentials
Configuration.isDfsConvertToFQDN() for a workaround.NtlmPasswordAuthenticator.AuthenticationType| Constructor and Description |
|---|
JAASAuthenticator()
Create an authenticator using the JAAS service jcifs
This will require that a keytab is configured in this service.
|
JAASAuthenticator(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(String serviceName)
Create an authenticator using the given JAAS service
This will require that a keytab is configured in this service.
|
JAASAuthenticator(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(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() |
void |
refresh() |
CredentialsInternal |
renew()
Renew the credentials
|
cloneInternal, createContext, equals, getLifeTime, getRealm, getService, getUser, getUserDomain, getUserLifeTime, hashCode, isPreferredMech, setForceFallback, setLifeTime, setRealm, setService, setUser, setUserLifeTime, toStringgetAnsiHash, getName, getPassword, getSigningKey, getSpecifiedUserDomain, getUnicodeHash, getUsername, getUserSessionKey, getUserSessionKey, unwrapcreateContextgetUserDomain, unwrappublic JAASAuthenticator()
public JAASAuthenticator(String serviceName)
serviceName - JAAS configuration namepublic JAASAuthenticator(String serviceName, String domain, String username, String password)
serviceName - JAAS configuration namedomain - username - password - public JAASAuthenticator(String domain, String username, String password)
domain - username - password - public JAASAuthenticator(Map<String,?> properties, String domain, String username, String password)
properties - 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 NtlmPasswordAuthenticatorNtlmPasswordAuthenticator.isGuest()public Kerb5Authenticator clone()
clone in interface CredentialsInternalclone in class Kerb5Authenticatorpublic void refresh()
throws CIFSException
refresh in interface CredentialsInternalrefresh in class Kerb5AuthenticatorCIFSExceptionKerb5Authenticator.refresh()public 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 © 2021. All rights reserved.