Module jcifs

Interface Credentials

All Known Subinterfaces:
CredentialsInternal, SmbRenewableCredentials
All Known Implementing Classes:
JAASAuthenticator, Kerb5Authenticator, NtlmNtHashAuthenticator, NtlmPasswordAuthentication, NtlmPasswordAuthenticator

public interface Credentials
Interface for opaque credential data
Author:
mbechler
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the domain of the user account.
    boolean
    Check if these are anonymous credentials.
    boolean
    Check if these are guest credentials.
    <T extends Credentials>
    T
    unwrap(Class<T> type)
    Unwrap credentials to a specific type.
  • Method Details

    • unwrap

      <T extends Credentials> T unwrap(Class<T> type)
      Unwrap credentials to a specific type.
      Type Parameters:
      T - the credential type to unwrap to
      Parameters:
      type - the class of the credential type to unwrap to
      Returns:
      instance for type, null if the type cannot be unwrapped
    • getUserDomain

      String getUserDomain()
      Get the domain of the user account.
      Returns:
      the domain the user account is in
    • isAnonymous

      boolean isAnonymous()
      Check if these are anonymous credentials.
      Returns:
      whether these are anonymous credentials
    • isGuest

      boolean isGuest()
      Check if these are guest credentials.
      Returns:
      whether these are guest credentials