com.codahale.metrics.collectd.SecurityConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-collectd Show documentation
Show all versions of metrics-collectd Show documentation
A reporter for Metrics which announces measurements to Collectd.
The newest version!
package com.codahale.metrics.collectd;
public class SecurityConfiguration {
private final byte[] username;
private final byte[] password;
private final SecurityLevel securityLevel;
public SecurityConfiguration(byte[] username, byte[] password, SecurityLevel securityLevel) {
this.username = username;
this.password = password;
this.securityLevel = securityLevel;
}
public static SecurityConfiguration none() {
return new SecurityConfiguration(null, null, SecurityLevel.NONE);
}
public byte[] getUsername() {
return username;
}
public byte[] getPassword() {
return password;
}
public SecurityLevel getSecurityLevel() {
return securityLevel;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy