public class HostKeyAndAlgoBothExistValidator extends Object implements javax.validation.ConstraintValidator<HostKeyAndAlgoBothExist,SshUriProperties>
SshUriProperties 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.| Constructor and Description |
|---|
HostKeyAndAlgoBothExistValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(HostKeyAndAlgoBothExist constrainAnnotation) |
boolean |
isValid(SshUriProperties sshUriProperties,
javax.validation.ConstraintValidatorContext context) |
public void initialize(HostKeyAndAlgoBothExist constrainAnnotation)
initialize in interface javax.validation.ConstraintValidator<HostKeyAndAlgoBothExist,SshUriProperties>public boolean isValid(SshUriProperties sshUriProperties, javax.validation.ConstraintValidatorContext context)
isValid in interface javax.validation.ConstraintValidator<HostKeyAndAlgoBothExist,SshUriProperties>Copyright © 2017 Pivotal Software, Inc.. All rights reserved.