Package com.buildless.projects
Class CredentialsValidator
java.lang.Object
com.buildless.projects.CredentialsValidator
- All Implemented Interfaces:
io.envoyproxy.pgv.ValidatorImpl<Credentials>
public class CredentialsValidator
extends Object
implements io.envoyproxy.pgv.ValidatorImpl<Credentials>
Validates
Credentials protobuf objects.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValidatesCredentials_ProjectApiKeyprotobuf objects.static classValidatesCredentials_ProjectTokenprotobuf objects. -
Field Summary
Fields inherited from interface io.envoyproxy.pgv.ValidatorImpl
ALWAYS_VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertValid(Credentials proto, io.envoyproxy.pgv.ValidatorIndex index) static io.envoyproxy.pgv.ValidatorImplvalidatorFor(Class clazz)
-
Constructor Details
-
CredentialsValidator
public CredentialsValidator()
-
-
Method Details
-
validatorFor
-
assertValid
public void assertValid(Credentials proto, io.envoyproxy.pgv.ValidatorIndex index) throws io.envoyproxy.pgv.ValidationException - Specified by:
assertValidin interfaceio.envoyproxy.pgv.ValidatorImpl<Credentials>- Throws:
io.envoyproxy.pgv.ValidationException
-