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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Factory for the standard credential types.
    static enum 
    Type code indicated the type of the credentials.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the type of credentials.
    byte[]
    Return the credential data as a byte array.
  • 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