public static interface Credentials.Factory
An instance of this factory can be obtained as follows:
Credentials.Factory factory = Diffusion.credentials();
Modifier and Type | Method and Description |
---|---|
Credentials |
custom(byte[] bytes)
Create a
Credentials of type CUSTOM . |
Credentials |
noCredentials()
Create a
Credentials of type NONE . |
Credentials |
password(String password)
Create a
Credentials of type PLAIN_PASSWORD . |
Credentials noCredentials()
Credentials
of type NONE
.Credentials password(String password)
Credentials
of type PLAIN_PASSWORD
.password
- the passwordCredentials custom(byte[] bytes)
Credentials
of type CUSTOM
.Copyright © 2022 Push Technology Ltd. All Rights Reserved.