Interface Credentials.Factory
- Enclosing interface:
- Credentials
public static interface Credentials.Factory
Factory for the standard credential types.
An instance of this factory can be obtained as follows:
Credentials.Factory factory = Diffusion.credentials();
-
Method Summary
Modifier and TypeMethodDescriptioncustom(byte[] bytes) Create aCredentialsof typeCUSTOM.Create aCredentialsof typeNONE.Create aCredentialsof typePLAIN_PASSWORD.
-
Method Details
-
noCredentials
Credentials noCredentials()Create aCredentialsof typeNONE.- Returns:
- the credentials
-
password
Create aCredentialsof typePLAIN_PASSWORD.- Parameters:
password- the password- Returns:
- the credentials
-
custom
Create aCredentialsof typeCUSTOM.- Returns:
- the credentials
-