Class HostKeyAndAlgoBothExistValidator

java.lang.Object
org.springframework.cloud.config.server.ssh.HostKeyAndAlgoBothExistValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<HostKeyAndAlgoBothExist,MultipleJGitEnvironmentProperties>

public class HostKeyAndAlgoBothExistValidator extends Object implements javax.validation.ConstraintValidator<HostKeyAndAlgoBothExist,MultipleJGitEnvironmentProperties>
JSR-303 Cross Field validator that ensures that a MultipleJGitEnvironmentProperties bean for the constraints: - If host key is set then host key algo must also be set - If host key algo is set then host key must also be set Beans annotated with HostKeyAndAlgoBothExist and Validated will have the constraints applied.
Author:
Ollie Hughes