org.wildfly.swarm.config.management.access.syslog_handler.protocol.ClientCertificateStoreAuthentication Maven / Gradle / Ivy
package org.wildfly.swarm.config.management.access.syslog_handler.protocol;
import org.wildfly.swarm.config.runtime.AttributeDocumentation;
import org.wildfly.swarm.config.runtime.ResourceDocumentation;
import org.wildfly.swarm.config.runtime.SingletonResource;
import org.wildfly.swarm.config.runtime.Address;
import org.wildfly.swarm.config.runtime.ResourceType;
import org.wildfly.swarm.config.runtime.Implicit;
import java.beans.PropertyChangeSupport;
import java.beans.PropertyChangeListener;
import org.wildfly.swarm.config.runtime.ModelNodeBinding;
import java.util.Map;
/**
* Configuration for the keystore containing the client certificate if the
* syslog server requires authentication.
*/
@Address("/core-service=management/access=audit/syslog-handler=*/protocol=tls/authentication=client-certificate-store")
@ResourceType("authentication")
@Implicit
public class ClientCertificateStoreAuthentication>
implements
org.wildfly.swarm.config.runtime.Keyed {
private String key;
private PropertyChangeSupport pcs;
@AttributeDocumentation("The password for the keystore key.")
private String keyPassword;
@AttributeDocumentation("The reference to credential for the keystore key stored in CredentialStore under defined alias or clear text password.")
private Map keyPasswordCredentialReference;
@AttributeDocumentation("The password for the keystore.")
private String keystorePassword;
@AttributeDocumentation("The reference to credential for the keystore password stored in CredentialStore under defined alias or clear text password.")
private Map keystorePasswordCredentialReference;
@AttributeDocumentation("The path of the keystore.")
private String keystorePath;
@AttributeDocumentation("The name of another previously named path, or of one of the standard paths provided by the system. If 'keystore-relative-to' is provided, the value of the 'keystore-path' attribute is treated as relative to the path specified by this attribute.")
private String keystoreRelativeTo;
public ClientCertificateStoreAuthentication() {
super();
this.key = "client-certificate-store";
this.pcs = new PropertyChangeSupport(this);
}
public String getKey() {
return this.key;
}
/**
* Adds a property change listener
*/
public void addPropertyChangeListener(PropertyChangeListener listener) {
if (null == this.pcs)
this.pcs = new PropertyChangeSupport(this);
this.pcs.addPropertyChangeListener(listener);
}
/**
* Removes a property change listener
*/
public void removePropertyChangeListener(
java.beans.PropertyChangeListener listener) {
if (this.pcs != null)
this.pcs.removePropertyChangeListener(listener);
}
/**
* The password for the keystore key.
*/
@ModelNodeBinding(detypedName = "key-password")
public String keyPassword() {
return this.keyPassword;
}
/**
* The password for the keystore key.
*/
@SuppressWarnings("unchecked")
public T keyPassword(java.lang.String value) {
Object oldValue = this.keyPassword;
this.keyPassword = value;
if (this.pcs != null)
this.pcs.firePropertyChange("keyPassword", oldValue, value);
return (T) this;
}
/**
* The reference to credential for the keystore key stored in
* CredentialStore under defined alias or clear text password.
*/
@ModelNodeBinding(detypedName = "key-password-credential-reference")
public Map keyPasswordCredentialReference() {
return this.keyPasswordCredentialReference;
}
/**
* The reference to credential for the keystore key stored in
* CredentialStore under defined alias or clear text password.
*/
@SuppressWarnings("unchecked")
public T keyPasswordCredentialReference(java.util.Map value) {
Object oldValue = this.keyPasswordCredentialReference;
this.keyPasswordCredentialReference = value;
if (this.pcs != null)
this.pcs.firePropertyChange("keyPasswordCredentialReference",
oldValue, value);
return (T) this;
}
/**
* The reference to credential for the keystore key stored in
* CredentialStore under defined alias or clear text password.
*/
@SuppressWarnings("unchecked")
public T keyPasswordCredentialReference(java.lang.String key,
java.lang.Object value) {
if (this.keyPasswordCredentialReference == null) {
this.keyPasswordCredentialReference = new java.util.HashMap<>();
}
this.keyPasswordCredentialReference.put(key, value);
return (T) this;
}
/**
* The password for the keystore.
*/
@ModelNodeBinding(detypedName = "keystore-password")
public String keystorePassword() {
return this.keystorePassword;
}
/**
* The password for the keystore.
*/
@SuppressWarnings("unchecked")
public T keystorePassword(java.lang.String value) {
Object oldValue = this.keystorePassword;
this.keystorePassword = value;
if (this.pcs != null)
this.pcs.firePropertyChange("keystorePassword", oldValue, value);
return (T) this;
}
/**
* The reference to credential for the keystore password stored in
* CredentialStore under defined alias or clear text password.
*/
@ModelNodeBinding(detypedName = "keystore-password-credential-reference")
public Map keystorePasswordCredentialReference() {
return this.keystorePasswordCredentialReference;
}
/**
* The reference to credential for the keystore password stored in
* CredentialStore under defined alias or clear text password.
*/
@SuppressWarnings("unchecked")
public T keystorePasswordCredentialReference(java.util.Map value) {
Object oldValue = this.keystorePasswordCredentialReference;
this.keystorePasswordCredentialReference = value;
if (this.pcs != null)
this.pcs.firePropertyChange("keystorePasswordCredentialReference",
oldValue, value);
return (T) this;
}
/**
* The reference to credential for the keystore password stored in
* CredentialStore under defined alias or clear text password.
*/
@SuppressWarnings("unchecked")
public T keystorePasswordCredentialReference(java.lang.String key,
java.lang.Object value) {
if (this.keystorePasswordCredentialReference == null) {
this.keystorePasswordCredentialReference = new java.util.HashMap<>();
}
this.keystorePasswordCredentialReference.put(key, value);
return (T) this;
}
/**
* The path of the keystore.
*/
@ModelNodeBinding(detypedName = "keystore-path")
public String keystorePath() {
return this.keystorePath;
}
/**
* The path of the keystore.
*/
@SuppressWarnings("unchecked")
public T keystorePath(java.lang.String value) {
Object oldValue = this.keystorePath;
this.keystorePath = value;
if (this.pcs != null)
this.pcs.firePropertyChange("keystorePath", oldValue, value);
return (T) this;
}
/**
* The name of another previously named path, or of one of the standard
* paths provided by the system. If 'keystore-relative-to' is provided, the
* value of the 'keystore-path' attribute is treated as relative to the path
* specified by this attribute.
*/
@ModelNodeBinding(detypedName = "keystore-relative-to")
public String keystoreRelativeTo() {
return this.keystoreRelativeTo;
}
/**
* The name of another previously named path, or of one of the standard
* paths provided by the system. If 'keystore-relative-to' is provided, the
* value of the 'keystore-path' attribute is treated as relative to the path
* specified by this attribute.
*/
@SuppressWarnings("unchecked")
public T keystoreRelativeTo(java.lang.String value) {
Object oldValue = this.keystoreRelativeTo;
this.keystoreRelativeTo = value;
if (this.pcs != null)
this.pcs.firePropertyChange("keystoreRelativeTo", oldValue, value);
return (T) this;
}
}