Class NullCredentialsSupplier

java.lang.Object
io.aeron.security.NullCredentialsSupplier
All Implemented Interfaces:
CredentialsSupplier

public class NullCredentialsSupplier extends Object implements CredentialsSupplier
Null provider of credentials when no authentication is required.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte[]
    Null credentials are an empty array of bytes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Provide encoded credentials to be included in Session Connect message a system.
    byte[]
    onChallenge(byte[] encodedChallenge)
    Given some encoded challenge, provide the credentials to be included in a Challenge Response as part of authentication with a system.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NULL_CREDENTIAL

      public static final byte[] NULL_CREDENTIAL
      Null credentials are an empty array of bytes.
  • Constructor Details

    • NullCredentialsSupplier

      public NullCredentialsSupplier()
  • Method Details

    • encodedCredentials

      public byte[] encodedCredentials()
      Provide encoded credentials to be included in Session Connect message a system.
      Specified by:
      encodedCredentials in interface CredentialsSupplier
      Returns:
      encoded credentials to be included in the Session Connect message to a system.
    • onChallenge

      public byte[] onChallenge(byte[] encodedChallenge)
      Given some encoded challenge, provide the credentials to be included in a Challenge Response as part of authentication with a system.
      Specified by:
      onChallenge in interface CredentialsSupplier
      Parameters:
      encodedChallenge - from the cluster to use in providing a credential.
      Returns:
      encoded credentials to be included in the Challenge Response to the system.