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

org.infinispan.client.rest.configuration.AuthenticationConfiguration Maven / Gradle / Ivy

There is a newer version: 14.0.33.Final
Show newest version
package org.infinispan.client.rest.configuration;

import javax.security.auth.Subject;

/**
 * AuthenticationConfiguration.
 *
 * @author Tristan Tarrant
 * @since 10.0
 */
public class AuthenticationConfiguration {
   private final boolean enabled;
   private final Subject clientSubject;
   private final String mechanism;
   private final String realm;
   private final String username;
   private final char[] password;

   public AuthenticationConfiguration(Subject clientSubject, boolean enabled, String mechanism, String realm, String username, char[] password) {
      this.enabled = enabled;
      this.clientSubject = clientSubject;
      this.mechanism = mechanism;
      this.realm = realm;
      this.username = username;
      this.password = password;
   }

   public boolean enabled() {
      return enabled;
   }

   public String mechanism() {
      return mechanism;
   }

   public Subject clientSubject() {
      return clientSubject;
   }

   public String realm() {
      return realm;
   }

   public String username() {
      return username;
   }

   public char[] password() {
      return password;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy