code: public static void validateApplicationUri(X509Certificate certificate, String applicationUri) throws UaException {
          if (!validateSubjectAltNameField(certificate, SUBJECT_ALT_NAME_URI, applicationUri::equals)) {
              throw new UaException(StatusCodes.Bad_CertificateUriInvalid);
          }
      }
docs: Validate that the application URI matches the SubjectAltName URI in the given certificate.
  
  @param certificate    the certificate to validate against.
  @param applicationUri the URI to validate.
  @throws UaException if the certificate is invalid, does not contain a uri, or contains a uri that does not match.