Package io.aeron.security
Class NullCredentialsSupplier
java.lang.Object
io.aeron.security.NullCredentialsSupplier
- All Implemented Interfaces:
CredentialsSupplier
Null provider of credentials when no authentication is required.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte[]
Null credentials are an empty array of bytes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
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.
-
Field Details
-
NULL_CREDENTIAL
public static final byte[] NULL_CREDENTIALNull 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 interfaceCredentialsSupplier
- 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 interfaceCredentialsSupplier
- Parameters:
encodedChallenge
- from the cluster to use in providing a credential.- Returns:
- encoded credentials to be included in the Challenge Response to the system.
-