Package io.aeron.security
Class DefaultAuthenticatorSupplier
java.lang.Object
io.aeron.security.DefaultAuthenticatorSupplier
- All Implemented Interfaces:
AuthenticatorSupplier,Supplier<Authenticator>
Default Authenticator which authenticates all connection requests immediately.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AuthenticatorSingleton instance which can be used to avoid allocation.static final DefaultAuthenticatorSupplierSingleton instance.static final byte[]The null encoded principal is an empty array of bytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets the singleton instanceDEFAULT_AUTHENTICATORwhich authenticates all connection requests immediately.
-
Field Details
-
INSTANCE
Singleton instance. -
NULL_ENCODED_PRINCIPAL
public static final byte[] NULL_ENCODED_PRINCIPALThe null encoded principal is an empty array of bytes. -
DEFAULT_AUTHENTICATOR
Singleton instance which can be used to avoid allocation.
-
-
Constructor Details
-
DefaultAuthenticatorSupplier
public DefaultAuthenticatorSupplier()
-
-
Method Details
-
get
Gets the singleton instanceDEFAULT_AUTHENTICATORwhich authenticates all connection requests immediately.- Specified by:
getin interfaceSupplier<Authenticator>- Returns:
DEFAULT_AUTHENTICATORwhich authenticates all connection requests immediately.
-