@Constraint(validatedBy=PrivateKeyValidator.class) @Target(value=TYPE) @Retention(value=RUNTIME) public @interface PrivateKeyIsValid
PrivateKeyValidator
and Validated
will have the constraints applied.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.