Package com.adyen.terminal.security
Class TerminalCommonNameValidator
- java.lang.Object
-
- com.adyen.terminal.security.TerminalCommonNameValidator
-
public final class TerminalCommonNameValidator extends Object
Validates the Common Name of a terminal API certificate.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanvalidateCertificate(X509Certificate certificate, Environment environment)Validates the Common Name of the givenX509Certificatefor the givenEnvironment.
-
-
-
Method Detail
-
validateCertificate
public static boolean validateCertificate(X509Certificate certificate, Environment environment)
Validates the Common Name of the givenX509Certificatefor the givenEnvironment.- Parameters:
certificate- theX509Certificateto validate.environment- theEnvironment.- Returns:
- true if the Common Name is valid, false otherwise.
-
-