Package jcifs
Interface Credentials
-
- All Known Subinterfaces:
CredentialsInternal,SmbRenewableCredentials
- All Known Implementing Classes:
JAASAuthenticator,Kerb5Authenticator,NtlmNtHashAuthenticator,NtlmPasswordAuthentication,NtlmPasswordAuthenticator
public interface CredentialsInterface for opaque credential data- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetUserDomain()booleanisAnonymous()booleanisGuest()<T extends Credentials>
Tunwrap(Class<T> type)
-
-
-
Method Detail
-
unwrap
<T extends Credentials> T unwrap(Class<T> type)
- Parameters:
type-- Returns:
- instance for type, null if the type cannot be unwrapped
-
getUserDomain
String getUserDomain()
- Returns:
- the domain the user account is in
-
isAnonymous
boolean isAnonymous()
- Returns:
- whether these are anonymous credentials
-
isGuest
boolean isGuest()
- Returns:
- whether these are guest credentials
-
-