org.infinispan.hotrod.configuration.AuthenticationConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
package org.infinispan.hotrod.configuration;
import static org.infinispan.commons.configuration.attributes.CollectionAttributeCopier.collectionCopier;
import java.util.HashMap;
import java.util.Map;
import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
import org.infinispan.commons.configuration.attributes.AttributeDefinition;
import org.infinispan.commons.configuration.attributes.AttributeSet;
import org.infinispan.commons.configuration.attributes.ConfigurationElement;
/**
* AuthenticationConfiguration.
*
* @since 14.0
*/
public class AuthenticationConfiguration extends ConfigurationElement {
static final AttributeDefinition ENABLED = AttributeDefinition.builder("use-auth", false, Boolean.class).build();
static final AttributeDefinition CALLBACK_HANDLER = AttributeDefinition.builder("callback-handler", null, CallbackHandler.class).build();
static final AttributeDefinition CLIENT_SUBJECT = AttributeDefinition.builder("client-subject", null, Subject.class).build();
static final AttributeDefinition SASL_MECHANISM = AttributeDefinition.builder("sasl-mechanism", "SCRAM-SHA-512", String.class).build();
static final AttributeDefinition