Module jcifs

Class Kerb5Authenticator

java.lang.Object
org.codelibs.jcifs.smb.impl.NtlmPasswordAuthenticator
org.codelibs.jcifs.smb.impl.Kerb5Authenticator
All Implemented Interfaces:
Serializable, Cloneable, Principal, Credentials, CredentialsInternal
Direct Known Subclasses:
JAASAuthenticator

public class Kerb5Authenticator extends NtlmPasswordAuthenticator
Base kerberos authenticator Uses a subject that contains kerberos credentials for use in GSSAPI context establishment. Be advised that short/NetBIOS name usage is not supported with this authenticator. Always specify full FQDNs. This can be a problem if using DFS in it's default configuration as they still return referrals in short form. See KB-244380 for compatible server configuration. See Configuration.isDfsConvertToFQDN() for a workaround.
See Also:
  • Constructor Details

    • Kerb5Authenticator

      public Kerb5Authenticator(Subject subject)
      Construct a Kerb5Authenticator object with Subject which hold TGT retrieved from KDC. If multiple TGT are contained, the first one will be used to retrieve user principal.
      Parameters:
      subject - represents the user who perform Kerberos authentication. It contains tickets retrieve from KDC.
    • Kerb5Authenticator

      public Kerb5Authenticator(Subject subject, String domain, String username, String password)
      Construct a Kerb5Authenticator object with Subject and potential NTLM fallback (if the server does not support kerberos).
      Parameters:
      subject - represents the user who perform Kerberos authentication. Should at least contain a TGT for the user.
      domain - domain for NTLM fallback
      username - user for NTLM fallback
      password - password for NTLM fallback
  • Method Details