All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.configuration.security.ServerTransportConfiguration Maven / Gradle / Ivy

The newest version!
package org.infinispan.server.configuration.security;

import org.infinispan.commons.configuration.attributes.AttributeDefinition;
import org.infinispan.commons.configuration.attributes.AttributeSet;
import org.infinispan.commons.configuration.attributes.ConfigurationElement;
import org.infinispan.configuration.parsing.Element;
import org.infinispan.server.configuration.Attribute;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 13.0
 **/
public class ServerTransportConfiguration extends ConfigurationElement {
   static final AttributeDefinition SECURITY_REALM = AttributeDefinition.builder(Attribute.SECURITY_REALM, null, String.class).immutable().build();
   static final AttributeDefinition DATA_SOURCE = AttributeDefinition.builder(Attribute.DATA_SOURCE, null, String.class).immutable().build();

   static AttributeSet attributeDefinitionSet() {
      return new AttributeSet(TrustStoreConfiguration.class, SECURITY_REALM, DATA_SOURCE);
   }

   ServerTransportConfiguration(AttributeSet attributes) {
      super(Element.TRANSPORT, attributes);
   }

   public String securityRealm() {
      return attributes.attribute(SECURITY_REALM).get();
   }

   public String dataSource() {
      return attributes.attribute(DATA_SOURCE).get();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy