Interface Credentials
public interface Credentials
Immutable value containing the proof material to support an authentication
request.
The server passes the credentials through to the configured authentication handlers for interpretation.
Credentials can be created using a Credentials.Factory, an instance
of which can be obtained as follows:
Credentials.Factory factory = Diffusion.credentials();
- Since:
- 5.0
- Author:
- DiffusionData Limited
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFactory for the standard credential types.static enumType code indicated the type of the credentials. -
Method Summary
-
Method Details
-
getType
Credentials.Type getType()Return the type of credentials.- Returns:
- The type of the credentials
-
toBytes
byte[] toBytes()Return the credential data as a byte array.- Returns:
- the data
-