- 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 TypeMethodDescriptionGet the domain of the user account.booleanCheck if these are anonymous credentials.booleanisGuest()Check if these are guest credentials.<T extends Credentials>
TUnwrap credentials to a specific type.
-
Method Details
-
unwrap
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
-