- All Superinterfaces:
Cloneable,Credentials
- All Known Subinterfaces:
SmbRenewableCredentials
- All Known Implementing Classes:
JAASAuthenticator,Kerb5Authenticator,NtlmNtHashAuthenticator,NtlmPasswordAuthentication,NtlmPasswordAuthenticator
Internal interface for SMB credentials.
This interface provides internal methods for managing
and accessing SMB authentication credentials.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the credentials.createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) Create an SSP context for authentication.Get the security subject associated with these credentials.voidrefresh()Refresh the credentials.Methods inherited from interface org.codelibs.jcifs.smb.Credentials
getUserDomain, isAnonymous, isGuest, unwrap
-
Method Details
-
clone
CredentialsInternal 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 contexttargetDomain- the target domain for authenticationhost- the target hostinitialToken- initial authentication token, if anydoSigning- 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
Refresh the credentials.- Throws:
CIFSException- if refresh fails
-