Module jcifs

Interface CredentialsInternal

All Superinterfaces:
Cloneable, Credentials
All Known Subinterfaces:
SmbRenewableCredentials
All Known Implementing Classes:
JAASAuthenticator, Kerb5Authenticator, NtlmNtHashAuthenticator, NtlmPasswordAuthentication, NtlmPasswordAuthenticator

public interface CredentialsInternal extends Cloneable, Credentials
Internal interface for SMB credentials. This interface provides internal methods for managing and accessing SMB authentication credentials.
Author:
mbechler
  • Method Details

    • clone

      Create a copy of the credentials.
      Returns:
      a copy of the credentials
    • createContext

      SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException
      Create an SSP context for authentication.
      Parameters:
      tc - the CIFS context
      targetDomain - the target domain for authentication
      host - the target host
      initialToken - initial authentication token, if any
      doSigning - whether message signing should be enabled
      Returns:
      a new SSP authentication context
      Throws:
      SmbException - if context creation fails
    • getSubject

      Subject getSubject()
      Get the security subject associated with these credentials.
      Returns:
      subject associated with the credentials
    • refresh

      void refresh() throws CIFSException
      Refresh the credentials.
      Throws:
      CIFSException - if refresh fails